Skip to content
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

Open
r0hin opened this issue Jul 5, 2023 Discussed in #397 · 4 comments

Comments

@r0hin
Copy link
Contributor

r0hin commented Jul 5, 2023

Discussed in #397

Originally posted by **r0hin** July 4, 2023 Using Firebase Cloud Messaging, upon receiving notification via FCM token, the notification is shown regardless of whether or not the app is in the foreground.

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!

@robingenz robingenz changed the title Conditionally show Firebase Messaging notification feat(messaging): add config option whether notification should be displayed in the foreground Jul 5, 2023
@timmyrosen
Copy link

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!

@robingenz
Copy link
Member

@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).

@tomek-em
Copy link

tomek-em commented Sep 11, 2024

That's what I am looking for. Any way to disable notifications when the app is in foreground on iOS.

@robingenz
Copy link
Member

@tomek-em Got it!

What is the status looking like on this?

PRs are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants