Process Flow - Notification handling in background
App receives notification
Is app in background?
No→Show notification in foreground
Yes
Background handler triggered
Process notification data
Show notification or update data silently
User taps notification?
No→Wait
Yes
Open app or specific screen
When a notification arrives, the app checks if it is in background. If yes, a background handler processes it, showing notification or updating data silently. User interaction opens the app.