我们正在开发一个iOS应用程序,我们希望实现PUSH NOTIFICATION功能。我已经查看了苹果文档,并要求我的团队代理在iOS开发中心启用Push notification功能,他们似乎已经启用了。我已经像下面这样在我的应用程序中注册了Push notification...
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
当我运行应用程序时,didFailToRegisterForRemoteNotificationsWithError被调用了,我无法预测问题,是否还有其他可以处理证书的方法。
谢谢...
-[UIApplication application:didFailToRegisterForRemoteNotificationsWithError:]
被调用了。传递给该回调的NSError
说了什么问题?你可以使用NSLog(@"Error: %@", error);
打印它。 - Stuart M