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
Description
Now, when we close the Android app and send a silent notification (where
notification = null
) it will not be handled because theOnNotificationReceived
delegate will benull
, since no one will create/resolve theDroidPushNotificationsService
. Since theFirebaseMessagingService
is recreated if the app is closed, I simply added getting theDroidPushNotificationsService
from the container since the container is also created since theAndroid.App.Application
object is created when theFirebaseMessagingService
is recreatedAPI Changes
None
Platforms Affected
Behavioral/Visual Changes
None
Before/After Screenshots
Not applicable
PR Checklist