push2 [iOS] Local Notification은 suspended에서 동작할까 문득 Local Notification을 앱이 suspended 상태로 전환되기 직전에 center에 request들을 추가해서 scheduling 해놓으면 동작할까라는 의문이 생겼다. 원래 Push Notification은 앱의 상태와 상관없이 동작해야하는게 맞기 때문에 동작은 당연히 할거라고 생각했는데 suspended 상태에서 동작하는지 background상태에서 동작하는지 명확히 확인하고 싶어서 테스트를 해보았고 결론은 'suspended에서 동작한다' 였다. func applicationDidEnterBackground(_ application: UIApplication) { var time: TimeInterval = 0 for _ in 0 ..< 10 { let content = UNMuta.. 2022. 5. 30. [iOS] App의 상태 별 Silent Push의 동작 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 Foregr.. 2022. 5. 25. 이전 1 다음