0
我一直在试图将用户名“NataMio”注册到频道中,但它正在像[“global”,“NataMio”]这样的频道下注册。但它应该是[“NataMio”],任何人都面临这个问题?在我的应用程序的Android版本上注册为[“NataMio”]。解析保存唯一对象错误
PFInstallation *currentInstallation = [PFInstallation currentInstallation];
[currentInstallation addUniqueObject:@"NataMio" forKey:@"channels"];
// [currentInstallation setDeviceTokenFromData:deviceToken];
[currentInstallation saveInBackgroundWithBlock:^(BOOL succeeded, NSError * _Nullable error) {
// code
}];
在您的测试,似乎它包含默认的全局。因此,您可以直接将“频道”设置为[“NataMio”]。 – ChunTingLin