APN | Generate a Remote Notification APNs

https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification

 

The Apple Notifications use a JSON payload to send the notification object. The maximum size of the payload is 4096 bytes.

JSON Payload Samples

Simple alert message

{
  "aps":{
    "alert":"Alert from sgcWebSockets!"
  }
}

Alert with title and subttile.

{
   "aps" : {
      "alert" : {
         "title" : "Game Request",
         "subtitle" : "Five Card Draw"
         "body" : "Bob wants to play poker",
      },
      "category" : "GAME_INVITATION"
   },
   "gameID" : "12345678"
}