It appears the function application:didReceiveRemoteNotification:fetchCompletionHandler
is not called when the app has been forcefully quit. It was my impressio
As documented by Apple, the new multitasking API (fetch and remote-notification) will work only when the app in the suspended/background/foreground state.
In the background/foreground state, then application:didReceiveRemoteNotification:fetchCompletionHandler
will get triggered.
In the Suspended state, then -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
will get triggered.
In the Not Running state (your case), application:didReceiveRemoteNotification:fetchCompletionHandler
never gets triggered.
Please refer to the Apple documentation for more about app states.