I have an iOS7 application that logs a remote notification in the background:
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
It works great before rebooting, and the application receives this event in the background:
-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
But it seems that after rebooting, I no longer receive this event until I started the application manually.
So the question is: can I do iOS7 to run my application in the background after a reboot when it receives a quiet push notification for my application? My push notifications do not have an alert field, only contentAvailable - maybe this is the reason? I have seen apps like whatsapp that can receive and show push notifications immediately after a reboot, so it looks doable, at least for “alert” notifications.
, - , . ?
- , ?