Huawei payload propsal

See the common action format for the action format and the ems structure for the ems structure.

Please refer to the doc

Version HUAWEI_V2

Payload in Json


  {
    "notification": {
    "silent": false,
    "title" : "testOfTests🐶",
    "body" : "This is 🐸",
    "icon": "this is an icon url",
    "imageUrl" : "https://demo.emarsys.net/custloads/210268110/md_100063863.jpeg",
    "style": "style enum",
    "collapseId": "the-id",
    "operation": "update|delete|...",
    "defaultAction": <action format>,
    "actions" : [<action format>, ...],
    "badgeCount": {
      "method": "SET | ADD",
      "value": 42
    }
  },
  "ems" : <ems structure>
}

Message sent to the provider


{
  token: ['##################']
  data: 'stringified payload'
  android: {
    ttl: '7200'
  }
}