我很有趣 Parse 并打电话给:
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken
{
[PFPush storeDeviceToken:newDeviceToken];
[PFPush subscribeToChannelInBackground:@"" target:self selector:@selector(subscribeFinished:error:)];
}
然后在午餐应用程序时,我收到此错误:
2012-06-30 00:13:23.380 JerusalemBiblicalZoo [607:707] *由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“当前安装对象脏时无法订阅频道。”
我已禁用此行:
[PFPush subscribeToChannelInBackground:@"" target:self selector:@selector(subscribeFinished:error:)];
而且效果很好。
有什么想法可以解决这个问题吗?