【发布时间】:2017-04-14 09:34:57
【问题描述】:
我正在为 iOS 设备解析推送通知,一切正常,直到设备令牌 ID 更改(可能通过重新安装应用程序)。任何人都可以指导在这种情况下需要采取哪些步骤才能再次使我的应用开始工作。
【问题讨论】:
-
您需要注册您的设备令牌
-
你能说得更具体点吗,除了调用 'didRegisterForRemoteNotificationsWithDeviceToken' 之外,是否有明确的方法来注册给定的设备令牌?
-
显示你的代码....
-
[应用程序 registerForRemoteNotifications]; // 在使用选项的 didFinishLaunching 中,- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { PFInstallation *currentInstallation = [PFInstallation currentInstallation]; [currentInstallation setDeviceTokenFromData:deviceToken]; [currentInstallation saveInBackground]; },还解析服务器日志显示:ERR! parse-server-push-adapter APNS 找不到
的有效连接
标签: ios apple-push-notifications