parse.com deviceToken和PFInstallation未保存

我遇到了我的iOS应用程序PFInstallation的一个奇怪的行为。 在每次启动应用程序时,我正在注册设备以接收推送通知,并在方法didRegisterForRemoteNotificationsWithDeviceToken上调用以下代码:

 PFInstallation *currentInstallation = [PFInstallation currentInstallation]; [currentInstallation setDeviceTokenFromData:deviceToken]; NSLog(@"%@", currentInstallation ); [currentInstallation saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { if (succeeded) { NSLog(@"currentInstallation saved" ); } if (error) { NSLog(@"currentInstallation NOT saved" ); } }]; 

当我在我的iphone上安装应用程序时,安装将通过其deviceToken正确保存。 我绝对相信,前几天我手动删除deviceToken通过parsing仪表板(尝试的东西),然后在应用程序重新启动设备令牌再次正确保存。 我正在使用的某些频道也是如此。 今天deviceToken没有被保存,也没有通道。 saveInBackgroundWithBlock成功,但deviceToken字段为空。 currentInstallation的NSLog包含deviceToken,但不保存。 在试图理解这种行为的原因时,我发现如果我添加行currentInstallation.deviceToken = @""; 仅在PFInstallation *currentInstallation = [PFInstallation currentInstallation]; 那么deviceToken会被正确保存。 使用Parse大师向我解释为什么会发生这种情况,为什么前几天它不是? 我最近升级了这个应用程序的分析框架,可以这样做的原因?