iPhone报摊推注册失败 [英] iPhone Newsstand push registration Failure

查看:118
本文介绍了iPhone报摊推注册失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

//注册通知

[[UIApplication sharedApplication]
 registerForRemoteNotificationTypes:(
                                     UIRemoteNotificationTypeAlert |
                                     UIRemoteNotificationTypeBadge |
                                     UIRemoteNotificationTypeSound |
                                     UIRemoteNotificationTypeNewsstandContentAvailability)];

这是code我用了推送通知登记注册。对于警报,徽章,声音的应用程序寄存器。但应用程序没有注册报摊推送通知。经过它

This is the code I use for registering for registering for push notifications. The app registers for Alert, Badges, Sound. But the app did not register for the newsstand push notifications. Checked it in

didRegisterForRemoteNotificationsWithDeviceToken

方法,有了这个条件

method, with this condition

if([application enabledRemoteNotificationTypes] & UIRemoteNotificationTypeNewsstandContentAvailability)

什么可能与此code中的问题。

What might the issue with this code.

推荐答案

推送通知不能在iPhone模拟器的工作,所以尝试在设备上运行。

Push notifications don't work on iPhone Simulator, so try to run it on a device.

如果这没有帮助,请尝试:

If this doesn't help, try to:


  • 实施
    应用:didFailToRegisterForRemoteNotificationsWithError:方法
    会议代表并检查错误说明

  • 检查此应用程序ID推送设置,并重新调配简介

  • 检查<一href=\"http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html#//apple_ref/doc/uid/TP40008194-CH104-SW5\"相对=nofollow> APS-环境

  • implement application:didFailToRegisterForRemoteNotificationsWithError: method on delegate and check error description
  • check push settings for this app ID and regenerate provisioning profile
  • check aps-environment

这篇关于iPhone报摊推注册失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆