-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question][Android]: Kill app and reopen, setNotificationWillShowInForegroundHandler not called when has new notification #1450
Comments
same here any solution? |
i am facing almost same issue with setNotificationWillShowInForegroundHandler some time it fired and some time not, |
i have tested it on latest and previous version above 4.+.+ and my react native version is 0.63.5 |
@adilkhan2163 Can you share your code, where you setup OneSignal and your call to Can you also enabled OneSignal VERBOSE logging and share your full logcat so all the events can be investigated? |
Same issue here : After the app was installed and opened for the first time setNotificationWillShowInForegroundHandler function is not working The notification is received in the notification bar instead of the handler, but when you kill the app and restart it it start working |
Hello everyone, since it has been quite some time since this issue has seen any responses, I'm going to close as stale. If anyone is still experiencing issues, please @ mention me and we will be happy to give it fresh eyes. Thanks! |
How can we help?
On android, when I kill app, and reopen it right away, setNotificationWillShowInForegroundHandler not called when has new notification. OneSignal log show:
Waiting for remote params. Moving onAppLostFocus() operation to a pending task queue.
And
App is in background, show notification
And after 2 min, it work again:
How can i make it run right after opening the app, without having to wait more than 2 minutes?
It happen on Onesignal ver 4.3.4 & RN 0.65.3
Code of Conduct
The text was updated successfully, but these errors were encountered: