We have a chat application where we show unread message count on application icon, everything works ok in foreground and background mode but if application is killed or terminated by user/system, we can not show the badge count, We have a push message service so we got the notification in killed state also but as calculation is done locally , How Can I calculate the badge against new message. Can we do any processing in killed state or configure application such that it awake itself from killed state and do some processing in background?
Can we do any processing in killed state or configure application such that it awake itself from killed state and do some processing in background?
No, and no. In general iOS interprets the user killing you app as a clear signal that they don’t want you app to run, and thus it won’t run be allowed to run in the background until the user next manually launches it.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"