我有一个字符串数组,我试图保存以解析为推送通知的通道。数组是正确的,我不知道发生了什么。有人可以对此有所了解吗?谢谢。
错误:
错误:错误的通道名称:TestString123(代码:112,版本:1.1.30)
代码:
- (void)saveSelectedDepartmentsToParse:(NSMutableDictionary *)dictionary {
NSArray *array = [dictionary allKeysForObject:@"YES"];
NSLog(@"Array = %@", array);
PFInstallation *currentInstallation = [PFInstallation currentInstallation];
[currentInstallation addObjectsFromArray:array forKey:@"channels"];
[currentInstallation saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
if (error == nil) {
NSLog(@"Parse Save Succeeded");
}
else {
NSLog(@"Parse Save Failed, %@", error.localizedDescription);
}
}];
}