Allow control "silent_in_foreground" at a receiver side. #497
AndrzejKozik
started this conversation in
Ideas
Replies: 1 comment
-
|
Nevermind, answer was in the last conversation here. You can modify Data dictionary in NotificationReceived event handler, which execution precedes decission based on "is_silent_in_foreground" entry. It's enought to write FCMNotification extension method, eg. SetSilentInForeground(bool state) that adds/removes dictionary entry according to expected state. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes "silent_in_foreground" set by sender is not enought to cover app demands, e.g. you won't show "new message" notification if you are on chat page (you perform background chat refresh), but you will otherwise. On the Android platform, using ShowLocalNotificationAction enables to supress appearance of notification by application. Do you have any idea how something similar could be done on iOS?
Beta Was this translation helpful? Give feedback.
All reactions