#WebPush payload proposal

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

Version WEB_V2

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

The former link property was the default action? If yes it is not needed anymore.