DidReceiveEmotentification:fetchCompletionHandler未连接到xcode iOS 8.0.2时未调用

DidReceiveEmotentification:fetchCompletionHandler未连接到xcode iOS 8.0.2时未调用,ios,objective-c,xcode,apple-push-notifications,Ios,Objective C,Xcode,Apple Push Notifications,问题是,当应用程序连接到xcode时,会调用didReceiveMemotentification:fetchCompletionHandler 但是当我分离它时,即使收到通知也不会调用它 我再次附加了应用程序(调试->附加到进程)&发送通知,didReceiveMemotentification:fetchCompletionHandler再次调用 有人可以解释为什么当我将didReceiveEmotentification:fetchCompletionHandler从xcode分离时没有调

问题是,当应用程序连接到xcode时,会调用
didReceiveMemotentification:fetchCompletionHandler

但是当我分离它时,即使收到通知也不会调用它

我再次附加了应用程序(调试->附加到进程)&发送通知,
didReceiveMemotentification:fetchCompletionHandler
再次调用

有人可以解释为什么当我将didReceiveEmotentification:fetchCompletionHandler从xcode分离时没有调用它

应用程序未强制关闭。我只是打开它,把它放在背景上

在iPhone5iOS8.0.2
APNS沙盒中测试


谢谢。

删除应用程序,然后重试,确保您没有混淆不同的已签名应用程序(开发、分发)。这有关系吗(删除应用程序)?通知收到了,我可以从声音上看出来。但是没有调用DidReceiveEmotentification:fetchCompletionHandler。但是如果我将其附加到xcode,并再次发送通知,则会调用该方法。对不起,我知道您根本没有收到通知。我想我的情况不同。我指的是DidReceiveEmotentification:fetchCompletionHandler,如果有效负载具有“内容可用”,则将调用它:1。问题是,如果我从xcode运行应用程序,则调用didReceiveEmotentification:fetchCompletionHandler是应该的,但是如果我不是从xcode运行应用程序,则即使收到通知,也不会调用mthod didReceiveEmotentification:fetchCompletionHandler。我使用debug->attach to process将应用程序附加到xcode,再次发送通知,然后调用方法didReceiveEmoteNotify:fetchCompletionHandler。您找到了解决方案吗?