title: Push-notifications IOS: Standard payload format
body: <p>I am construing below payload. If i send required data object inside aps object then i am able to recieve the data even when application is quit and user taps on tray, </p>
  
  <pre><code>{
                  "aps": {
                                  "content-available":1,
                                  "alert": {
                                                  "title": "Game Request",
                                                  "body": "Bob wants to play poker"
                                  },
                                  "sound": "default",
                                  "data": {
                                  "alertType": "ALERT",
                                  "eventTime": "121346666545454",
                                  "deviceId": "657585685858",
                                  "user":"Arun"
                  }
                  },
  
  }
  </code></pre>
  
  <p>As per the standard format we have to place data outside the aps object which i saw in APNS documentation like.</p>
  
  <pre><code>{
                      "aps": {
                                      "content-available":1,
                                      "alert": {
                                                      "title": "Game Request",
                                                      "body": "Bob wants to play poker"
                                      },
                                      "sound": "default"
                      },
                      "data": {
                                      "alertType": "ALERT",
                                      "eventTime": "121346666545454",
                                      "deviceId": "657585685858",
                                      "user":"Arun"
                      }
      }
  </code></pre>
  
  <p>Can anyone please suggest me which is IOS APNS standard format. since i am new to IOS. </p>
  
  <p>As per below URL <a href="https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html#//apple_ref/doc/uid/TP40008194-CH10-SW1" rel="nofollow noreferrer">https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html#//apple_ref/doc/uid/TP40008194-CH10-SW1</a>. </p>
  
  <p>we have to send the app-specific data outside the aps. if we send we are not getting in app when user comes from notification tray click.</p>
  
  <p>Thanks in advance</p>