iOS APNS 테스트를 위한 툴
APNS-Tool
aps 안에 alert -> 앱 내려가 있을때 os에서 뿌려주는 메세지
앱에서는 그외에 값을 추가로 받고자 하면 message와 같은 형태로 받을 수 있다.
이미지나 동영상도 첨부할 수 있다.
{
"aps": {
"alert": {
"title": "title",
"subtitle": "subtitle",
"body": "body"
},
"mutable-content": "1"
},
"my-attachment": "http://www.qilook.com/wp-content/uploads/2015/08/Screen-Shot-2015-08-04-at-12.52.28-PM.png",
"mediaType": "image"
}
{
"aps": {
"alert": {
"title": "title",
"subtitle": "subtitle",
"body": "body"
},
"mutable-content": "1"
},
"my-attachment": "http://106.240.232.36:8090/files/origin/20170315/c3a59b66189f4b34b2c2273899e5436a.mp4",
"mediaType": "movie"
}
Remote Notification - slient push
{
"aps": {
"sound": "",
"content-available": 1,
"userNumber": 2
}
}
참고
apple developer-Creating the Remote Notification Payload
apple developer-Generating a Remote Notification
Pushing Background Updates to Your App