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
[Android] onNotificationOpened not called when app is on focus #89
Comments
Hi @JonathanWi,
By default on Android, enableNotificationsWhenActive is set to true. |
Thanks @gwleclerc ! Something really weird is happening: This behavior only works when I'm in dev mode?! How is that possible? any idea? Cheers! |
Hey, here's an update regarding this — still unresolved for me — issue: What's happeningEven with the
Of course, these are not a real workarounds. I need to precise that it's the toggling of the mode that makes it work, not a dev mode in particular. What I've tried
My theoryAs stated before:
Because of all this, my current theory is that after building, OneSignal detects my app as inactive. Sending the app in background mode (or toggling the Next stepsI'm looking into the I'll keep you updated on my findings on this :) |
@JonathanWi |
I also have this problem on Amdroid and can't find any work around for it. The app is not considered active until sending it to the background and then focused again. |
Same very annoying problem. Would be great to have a fix. Any update on this? |
Same problem here, onNotificationOpened gets called only after I select "Reload" after shaking the phone. |
Solved with version 2 |
Hi!
As explained in the title, the onNotificationOpened callback is never called if the app is on focus, and I still receive the push notification (on Android). Everything works fine on iOS, but nothing I've done so far seems to work (enableInAppAlertNotification, configure in the index.android.js)...
What should I do?
The text was updated successfully, but these errors were encountered: