我正在尝试使用解析注册推送通知。
在应用程序完成启动时我有:
//register to push
[application registerForRemoteNotificationTypes:
UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeAlert |
UIRemoteNotificationTypeSound];
当我收到此回调时,
- (void)application:(UIApplication *)application
didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken
{
NSLog(@"registered:%@",newDeviceToken);
PFInstallation *currentInstallation = [PFInstallation currentInstallation];
[currentInstallation setDeviceTokenFromData:newDeviceToken];
[currentInstallation saveInBackground];
}
设备令牌很好,但是我收到了这个错误:
Error: deviceType must be specified in this operation (Code: 135, Version: 1.2.18)
该设备未在解析网站上注册。 那个功能怎么了?