-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
feat(messaging): add config option whether notification should be displayed in the foreground #398
Comments
What is the status looking like on this? Would be great if this could be implemented soon. We have a chat app and if two people are chatting at the same time it's pretty annoying to also get a push notification on every message. Great package otherwise, thanks for all the hard work! |
@timmyrosen This PR is intended to ensure that you also receive push notifications on Android in the foreground. I think you are looking for the opposite (probably for iOS). |
That's what I am looking for. Any way to disable notifications when the app is in foreground on iOS. |
@tomek-em Got it!
PRs are welcome! |
Following. |
I've just noticed that it's already possible to configure whether a notification should be shown if the app is in the foreground on iOS using the {
"plugins": {
"FirebaseMessaging": {
"presentationOptions": []
}
}
} I'm therefore closing this issue. |
This was previously asked here
And you replied:
As a side note, I think the empty array option was working as intended (conforming to the documentation) about 2 years ago, if I remember correctly. The behavior of immediate denial must have been added sometime later. I wrote this with the hope that it could help track the issue somewhere in commit history. |
Discussed in #397
Is there any existing functionality to disable notifications when the app is open and instead use an in-app notification?
Solving this problem without the use of the local notifications and directly within the capacitor-firebase/messaging package would be a cool feature!
The text was updated successfully, but these errors were encountered: