How to catch silent notification payload when the App is killed with ionic cordova

Hi All,
could some one help me on this issue. I’m able to detect a silent notification on Ionic cordova app when the app is in forground or in backgroud. But when it’s killed, it’s not working like (whatssap).

regards,

Hi Mamadou,

On Android, the app must not have been force quit or killed to receive push notifications.

If this is the case, you will see the following log in logcat when the device receives a push notification:

W/GCM: broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000000 pkg=com.your.package (has extras) }

This indicates that FCM will not wake the app up to let it display the appropriate notification, and thus while delivered properly, the device drops the notification.

Best,