We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
showNotificationsWhenInForeground
In android when i set showNotificationsWhenInForeground to true the app doesn't show the notification if it is in the foreground
firebase().messaging().showNotificationsWhenInForeground = true;
https://github.com/NativeScript/firebase/blob/main/packages/firebase-messaging/README.md#always-show-notifications-when-the-application-is-in-foreground
The text was updated successfully, but these errors were encountered:
I guess this issue is still not resolved, is that correct?
Sorry, something went wrong.
I've been using local-notifications as a workaround for this for a while now.
@SingleMalted So you solved it by displaying a message using local-notifications when receiving a message via messaging.onMessage in firebase?
local-notifications
messaging.onMessage
yep, basically. It checks that the app is in the foreground and is Android. If so, it schedules a local notification.
It's not ideal but it works well enough.
No branches or pull requests
In android when i set
showNotificationsWhenInForeground
to true the app doesn't show the notification if it is in the foregroundhttps://github.com/NativeScript/firebase/blob/main/packages/firebase-messaging/README.md#always-show-notifications-when-the-application-is-in-foreground
The text was updated successfully, but these errors were encountered: