//注册通知
[[UIApplication sharedApplication]
registerForRemoteNotificationTypes:(
UIRemoteNotificationTypeAlert |
UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeNewsstandContentAvailability)];
这是我用于注册推送通知的代码。该应用程序注册警报、徽章、声音。但是该应用程序没有注册报摊推送通知。 checkin 了
didRegisterForRemoteNotificationsWithDeviceToken
方法,在这个条件下
if([application enabledRemoteNotificationTypes] & UIRemoteNotificationTypeNewsstandContentAvailability)
这段代码可能有什么问题。
最佳答案
您是否已经包含 Newsstand Info.plist 键?您可以在设置/商店中检查注册报亭的应用程序是否推送。
关于apple-push-notifications - iPhone报亭推送注册失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7832432/