title: How to correctly set application badge value in iOS 8?
body: <p>Old method</p>
  
  <pre><code>[[UIApplication sharedApplication] setApplicationIconBadgeNumber:count];
  </code></pre>
  
  <p>is now gives error <code>Attempting to badge the application icon but haven't received permission from the user to badge the application</code>.</p>
  
  <p>Then I tried to use new API (that I'm think is related to badge value)</p>
  
  <pre><code>CKModifyBadgeOperation * operation = [[CKModifyBadgeOperation alloc] initWithBadgeValue:50];
  [operation setModifyBadgeCompletionBlock:^(NSError *error) {
        NSLog(@"%@", error);
  }];
  [operation start];
  </code></pre>
  
  <p>But I'm receiving error <code>&lt;CKError 0x165048a0: "Not Authenticated" (9/1002); "This request requires an authenticated account"&gt;</code></p>
  
  <p>How to set badge or receive some new permissions?</p>