iOS/설명
[iOS] App의 상태 별 Silent Push의 동작
Sky Titan
2022. 5. 25. 21:16
728x90
Push notification not receiving in background iOS
I am doing push notification in my project through GCM. My Application is able to receive notification in foreground but not in background. I receive a message inside the method func application(
stackoverflow.com
App의 상태 별 Silent Push의 동작
{
"aps": {
"alert": "Hello World",
"sound": "default"
"content-available" :1
}
}
| state | alert | callback |
| Foreground | 안 보임 | application(didReceiveRemoteNotification) |
| Background | 보임 | application(didReceiveRemoteNotification) |
| Suspended | 보임 | application(didReceiveRemoteNotification) |
| Not Running (killed by user) | 보임 | No callback |
728x90