Firebase message push on android with the system tray
Firebase is the most widely used message push tool on Android. If the Android app on the background, both received and processed messages are processed by the system. So this article will introduce and provide a demo project for quick testing FCM.
Notification in Android
You can find details from the official document here.
Firebase Push
You can find details from the official document here.
Usually, if your app runs in the background, the notification will display with the system tray. And if it runs in the foreground, Firebase SDK will call onMessageReceived()
to pass payload for making notification yourselves.
Server Implement
Here is a demo project is written using JavaScript.
1 | var admin = require("firebase-admin"); |
The token is generated by Firebase mobile SDK.
Android Implement
1 | FirebaseInstanceId.getInstance().instanceId.addOnSuccessListener( |