FCM Android Demo
Running the App:
-
Create app in Firebase Console with the given application ID.
-
Add
google-services.json
file inapp/
directory. -
Build and Run the app.
Test using Postman
-
Create a new POST request.
-
Add Headers
Content-Type: application/json
Authorization: key=<FCM-Server-Key>
- Add Body:
{
"to": "fcm-token",
"data": {
"key1" : "value-1",
"key2" : "value-2"
}
}