didReceiveRemoteNotification:fetchCompletionHandle

2019-04-27 13:32发布

问题:

Here's the problem, when the app is attached to xcode, didReceiveRemoteNotification:fetchCompletionHandler is called.

But when i detach it, it's not called even when the notification is received.

I attached app again (debug->attach to process) & send the notification, didReceiveRemoteNotification:fetchCompletionHandler called again.

Someone could explain why didReceiveRemoteNotification:fetchCompletionHandler was not called when i detach it from xcode ?

The app was not force closed. I just open it & put it to background.

Tested in iPhone 5 iOS 8.0.2
APNS Sandbox.

Thank you.