I’ve integrated the https://github.com/fechanique/cordova-plugin-fcm plugin for receiving push notifications.
All seems to work good when the app is in foreground/background but no notification comes when the app is killed.
I have the same issue with oneSignal and FCM using Asus ZenFone 3.
I have read that on some Posts that is related with the ROM but in my case im using the oficial Asus software so no clue at all.
Hi, It’s been a long back I had faced this issue. The root cause of this issue is some Chinese mobile manufacturers have customised Android OS and they will not allow debug app to run in background to receive the notifications. But when the app is downloaded from the store, there will not be any problem in receiving the notifications.
So do a beta release in Android and Test Flight in iOS to confirm this. It had solved my problem. All the best.
No, when app is in the killed state, you cannot trigger onNotification with the help of this plugin. You need either modify the native code of the plugin for Android to do it. In iOS you need use VOIP notifications.