How do you prevent a foreground notification from displaying? #725
Unanswered
danleveille
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Scenario: A user can set a timer in my app. If the app is closed, they get a notification. If the app is open, however, I only want them to get a notification if they aren't on the "Timers" screen (since it's clear that the timer has ended).
Is there a way to suppress push notifications while in the app?
I could use
notifee.onForegroundEvent
to listen for the the "DELIVERED" event, but is there are way to prevent it from actually delivering or displaying?Beta Was this translation helpful? Give feedback.
All reactions