https://stackoverflow.com/questions/37711082/how-to-handle-notification-when-app-in-background-in-firebase 1. Why is this happening ? There are two types of messages in FCM (Firebase Cloud Messaging): Display Messages : These messages trigger the onMessageReceived() callback only when your app is in foreground Data Messages : Theses messages trigger the onMessageReceived() callback even if your app is in foreground/background/killed Firebase team have not developed a UI to send data-messages to your devices, yet. https://stackoverflow.com/questions/3621599/wake-android-device-up https://stackoverflow.com/questions/37570200/firebase-silent-apns-notification https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#push-message-arrives-with-app-in-background With FCM, you can send two types of messages to clients: Notification messages , sometimes thought of as "display messages." Data messages, which are handled by the client app. As per ...
Some tribes of the programmer clan.