TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
211 stars 49 forks source link

When application is in foreground, always get a trey Notification either data or notification message #228

Closed wolfgangschneider closed 10 months ago

wolfgangschneider commented 10 months ago

If I understand it right there are notification messages and data messages, with a different behaviour in case of notification

Whatever I do i get always a trey Notification when the app is in foreground. (NotificationReceived works like expected). I used the Firebase console Massaging composer to test .

wolfgangschneider commented 10 months ago

I found a solution,add is_silent_in_foreground to the Data Dictionary

Data = new Dictionary<string, string>() { { "is_silent_in_foreground", $"true" } },