How can i recieve firebase push notification after application is killed

Hello, i’m using cordova-plugin-firebase and i can’t recieve push notifications while the app is not running. It work perfectly when the app is on foreground and when it is in the background it work but the notification icon isn’t loaded.

Here is my plugin list :

$ cordova plugins
com.googlemaps.ios 2.4.0 "Google Maps SDK for iOS"
cordova-android-play-services-gradle-release 1.1.1 "cordova-android-play-services-gradle-release"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-facebook4 1.9.1 "Facebook Connect"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-firebase 0.1.24 "Google Firebase Plugin"
cordova-plugin-googlemaps 1.4.5 "cordova-googlemaps-plugin"
cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
ionic-plugin-keyboard 2.2.1 "Keyboard"

and the olty code section where i use firebase :

platform.ready().then(() => {
     
     /*Do some stuff
      * [...]
      */

     //Grant permission for IOS devices
     if (! this.firebase.hasPermission())
       this.firebase.grantPermission();
   });

Thanks

What do you mean it works? Could you provide more info on this?

Its when i leave the app but i don’t kill it using the process menu of my tablet.

I successfully receive the notification in the event bar but the notification’s icon is only a white square.

And if you kill it, does it show? Or it doesn’t show at all when the app is in the background?

I hadn’t encountered that one before.

This thread saved my life guys! https://stackoverflow.com/questions/37711082/how-to-handle-notification-when-app-in-background-in-firebase

It doesn’t show any push notification when the app is killed.

EDIT: It look like it’s because of the plugin, it is working fine on my Galaxy Note 4 with Marshmallow but not on My Zenpad 2 with Nougat. So i opened an issue.