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
setNotificationWillShowInForegroundHandler works only when the app is in focus is there a way to not show a certain notification when the app is in the background?
I looked around a lot and didn't find anything, if there isn't a way to do that could this issue be turned into a feature request
I've linked this on stackoverflow someone else had this issue but it seems it worked for their case Reference
The text was updated successfully, but these errors were encountered:
i have same problem.
if use sdk < 3.0.0 it's work with setNotificationReceivedHandler.
in setNotificationReceivedHandler you can handle the data even if the app is out of focus.
but in setNotificationWillShowInForegroundHandler your app must be in focus.
i don't know it's an SDK issue or the documentation to handle cases like this doesn't exist but can handle cases like this.
You must use setNotificationOpenedHandler because you are background, so, when you press to the notification that listener called setNotificationOpenedHandler will listen it and enter to the listener. setNotificationWillShowInForegroundHandler is used when you are into to your app not outside
Description:
setNotificationWillShowInForegroundHandler works only when the app is in focus is there a way to not show a certain notification when the app is in the background?
I looked around a lot and didn't find anything, if there isn't a way to do that could this issue be turned into a feature request
I've linked this on stackoverflow someone else had this issue but it seems it worked for their case
Reference
The text was updated successfully, but these errors were encountered: