Softeq / XToolkit.WhiteLabel

Modular MVVM framework for fast creating powerful cross-platform applications with Xamarin & .NET for Mobile
https://softeq.github.io/XToolkit.WhiteLabel/
MIT License
25 stars 5 forks source link

Fixed handling of silent push notifications on Android #512

Closed dimysa closed 1 year ago

dimysa commented 1 year ago

Description

Now, when we close the Android app and send a silent notification (where notification = null) it will not be handled because the OnNotificationReceived delegate will be null, since no one will create/resolve the DroidPushNotificationsService. Since the FirebaseMessagingService is recreated if the app is closed, I simply added getting the DroidPushNotificationsService from the container since the container is also created since the Android.App.Application object is created when the FirebaseMessagingService is recreated

API Changes

None

Platforms Affected

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

PR Checklist