0

複数の Parse チャネルにデバイスを登録しようとしていますが、機能せず、何が間違っているのかわかりません。

私のテーブルでは、デバイスがこれらのチャネルにあると解析されません

ボタンを押すと実行されます。

[currentInstallation addUniqueObject:@"CocaCola" forKey:@"channels"];
[currentInstallation addUniqueObject:@"Seur" forKey:@"channels"];
[currentInstallation addUniqueObject:@"ADIF" forKey:@"channels"];
[currentInstallation saveInBackground];
4

1 に答える 1

0

次のことを試してください。

PFInstallation *currentInstallation = [PFInstallation currentInstallation];
currentInstallation.channels = @[ @"CocaCola", @"Seur", @"ADIF" ];
[currentInstallation saveInBackground];

または、使用することを検討してくださいsubscribeToChannelInBackground

subscribeToChannelInBackground:

デバイスをプッシュ通知のチャネルに非同期的にサブスクライブします。

+ (void)subscribeToChannelInBackground:(NSString *)channel

于 2015-10-05T18:16:57.713 に答える