Created
January 25, 2022 18:33
-
-
Save gugadev/60e0bd71719af8649ad58b3b8f68097d to your computer and use it in GitHub Desktop.
Migration of the REST payload from legacy to v1 - FCM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"to": "token o topic", | |
"priority": "high", | |
"notification": { | |
"title": "Title of the notification", | |
"body": "Description of the notification", | |
"android_channel_id": "Android channel" | |
}, | |
"data": { | |
"field_1": "Some extra data" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"message": { | |
"token": "token", // or "topic" if we want to send for a topic | |
"notification": { | |
"title": "Title of the notification", | |
"body": "Description of the notification" | |
}, | |
"android": { | |
"priority": "high", | |
"notification": { | |
"channel_id": "Android channel" | |
} | |
}, | |
"data": { | |
"field_1": "Some extra data" | |
} | |
}, | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment