title: Not receiving CloudKit push notifications
body: <p>I'm writing a small app that uses CloudKit. For some reason the app doesn't receive any notifications when there's a new record matching the query. Has anyone been able to get this feature to work?</p>
  
  <p>I create new records in the app, but also in the CloudKit dashboard. The record is very simple, with a single integer field. </p>
  
  <p>Create a record:</p>
  
  <pre><code> CKRecord *record = [[CKRecord alloc] initWithRecordType:kSISCloudKitRecordTypeTest];
   record[@"value"] = @1;
   [self.publicDatabase saveRecord:record completionHandler:^(CKRecord *record, NSError *error)
    {
         // this call succeeds, no error.
    }];
  </code></pre>
  
  <p>Register for notifications:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      [application registerForRemoteNotifications];
  }
  </code></pre>
  
  <p>Create a subscription:</p>
  
  <pre><code>NSPredicate *predicate = [NSPredicate predicateWithFormat:@"value = 1"];
  
  CKSubscription *subscription = [[CKSubscription alloc]
                                  initWithRecordType:kSISCloudKitRecordTypeTest
                                  predicate:predicate
                                  options:CKSubscriptionOptionsFiresOnRecordCreation];
  
  CKNotificationInfo *notificationInfo = [CKNotificationInfo new];
  notificationInfo.alertLocalizationKey = @"LOCAL_NOTIFICATION_KEY";
  notificationInfo.soundName = @"Party.aiff";
  notificationInfo.shouldBadge = YES;
  subscription.notificationInfo = notificationInfo;
  
  [self.publicDatabase saveSubscription:subscription
                      completionHandler:^(CKSubscription *subscription, NSError *error)
   {
       // this succeeds as well, at least the 1st time I run it.
       // on subsequent calls it returns an error "duplicate subscription", which is OK by me.
   }
  </code></pre>
  
  <p>After running the above code, and creating a new record in the dashboard, I expect this app delegate method to be called:</p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
  {
      CKNotification *cloudKitNotification = [CKNotification notificationFromRemoteNotificationDictionary:userInfo];
      NSLog(@"cloudKitNotification: %@", cloudKitNotification);
  }
  </code></pre>
  
  <p>However, it never gets called.</p>