You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set showPushNotification = false to manage push notifications when the app is in the foreground.
When the app is in the foreground, I receive the notification through NotifierManager.Listener.onPushNotificationWithPayloadData
If the user is on a different page/deeplink than the one from the payload URL, I show a local notification: NotifierManager.getLocalNotifier().notify(...)
The problem is that if the app is in the background, the notification is shown, and when the user clicks, I also receive it to the listener, and I will show it again.
The question is how I can determine if the notification was received when the app was in the background, so I can avoid showing it again.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have set showPushNotification = false to manage push notifications when the app is in the foreground.
When the app is in the foreground, I receive the notification through
NotifierManager.Listener.onPushNotificationWithPayloadDataIf the user is on a different page/deeplink than the one from the payload URL, I show a local notification:
NotifierManager.getLocalNotifier().notify(...)The problem is that if the app is in the background, the notification is shown, and when the user clicks, I also receive it to the listener, and I will show it again.
The question is how I can determine if the notification was received when the app was in the background, so I can avoid showing it again.
Beta Was this translation helpful? Give feedback.
All reactions