didReceiveRemoteNotification:fetchCompletionHandler not called when not attached to xcode iOS 8.0.2

纵饮孤独 提交于 2019-12-10 04:08:13

问题


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.

来源:https://stackoverflow.com/questions/28428434/didreceiveremotenotificationfetchcompletionhandler-not-called-when-not-attached

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!