古い方法
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:count];
エラーが発生するようになりましAttempting to badge the application icon but haven't received permission from the user to badge the application
た。
次に、新しいAPIを使用しようとしました(バッジの値に関連していると思います)
CKModifyBadgeOperation * operation = [[CKModifyBadgeOperation alloc] initWithBadgeValue:50];
[operation setModifyBadgeCompletionBlock:^(NSError *error) {
NSLog(@"%@", error);
}];
[operation start];
しかし、私はエラーを受け取っています<CKError 0x165048a0: "Not Authenticated" (9/1002); "This request requires an authenticated account">
バッジを設定したり、新しい権限を取得したりする方法は?