FCM
| It’s important to note that FCM onlly supports a flat key-value pair structure. This means that the payload should not contain nested objects. Instead the nested structure is expressed using dots in the keys. |
See the common action format for the action format and the ems structure for the ems structure.
Please have a look at the Firebase Documenation.
Version FCM_V2
{
token: "###############",
data: {
"notification.silent": "false",
"notification.title": "testOfTests🐶",
"notification.body": "This is 🐸",
"notification.icon": "this is an icon url",
"notification.imageUrl": "https://demo.emarsys.net/custloads/210268110/md_100063863.jpeg",
"notification.style": "style enum",
"notification.collapseId": "collapse-id",
"notification.operation": "update|delete|...",
"notification.defaultAction": "<action format>",
"notification.actions": "[<action format>, ...]",
"notification.badgeCount": "{
"method": "SET | ADD",
"value": 42
}",
"ems": <flattened ems structure>,
},
android: {
priority: 'normal',
ttl: '7200s'
}
}