APNS payload proposal
See the common action format for the action format and the ems structure for the ems structure.
Please check the Payload key reference and Sending notification requests to APNs
Version APNS_V2
{
"token": "###############",
"payload": {
"aps": {
"alert": {
"body": "ciao 001",
"title": "ciao 001"
},
"sound": "default",
"mutable-content": 1
},
"notification": {
"imageUrl" : "https://demo.emarsys.net/custloads/210268110/md_100063863.jpeg",
"silent": false,
"operation": "init"
"defaultAction": <action format>,
"actions" : [<action format>, ...],
"badgeCount": {
"method": "SET | ADD",
"value": 42
},
},
"ems": <flattened ems structure>
},
"options": {
"apnsPushType": "alert",
"apnsExpiration": 1742838259
}
}
In case of silent push it would remain the same, something like:
{
"aps" : {
"content-available" : 1
},
"property1" : "value1",
"property2" : "value2",
}
---