You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android Notifications does not shown on background and killed states on latest 4.0.0 version.
The phone receives the notification (I see it via doing *#*#426#*#*).
Expected Behaviour
It should be shown when sending via data tag.
Actual Behaviour
It is not shown when the app is background, but it is shown when I send FCM push with notification tag.
Also, I noticed that, when I send the push message and it is not delivered, then when I open the app again, the app starts from the begining (splash screen). I mean, when the app receives any push message when it is on background, it behaves as it is killed and starting again.
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
I tried it on Android 7, 8, 10, 11. All same behaviour.
In previous versions of Android/Cordova, sending the title/body etc. only in the data key as documented, the notification would be displayed when the app was in the background.
Currently, when sending with the notification key, the plugin behaves as documented, the Android system will display the notification, but the plugin's handlers don't run.
Also, I noticed that, when I send the push message and it is not delivered, then when I open the app again, the app starts from the begining (splash screen). I mean, when the app receives any push message when it is on background, it behaves as it is killed and starting again.
Noticed this also, sending the notification with details in the data key only - when received while the app is in the background - the app crashes.
Bug Report
Android Notifications does not shown on background and killed states on latest 4.0.0 version.
The phone receives the notification (I see it via doing
*#*#426#*#*
).Expected Behaviour
It should be shown when sending via data tag.
Actual Behaviour
It is not shown when the app is background, but it is shown when I send FCM push with notification tag.
Also, I noticed that, when I send the push message and it is not delivered, then when I open the app again, the app starts from the begining (splash screen). I mean, when the app receives any push message when it is on background, it behaves as it is killed and starting again.
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
I tried it on Android 7, 8, 10, 11. All same behaviour.
(Android) Device Vendor (e.g. Samsung, HTC, Sony...)
Samsung and RedMi.
Sample Push Data Payload
The text was updated successfully, but these errors were encountered: