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,
{
"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"
}
},
}
As per the standard format we have to place data outside the aps object which i saw in APNS documentation like.
{
"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"
}
}
Can anyone please suggest me which is IOS APNS standard format. since i am new to IOS.
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.
Thanks in advance