1

I create CKSubscription using the following code:

NSPredicate *predicate2 = [NSPredicate predicateWithFormat:@"(creatorUserRecordID == %@)", self.myRecordId];

CKSubscription *subscription2 = [[CKSubscription alloc]
                                initWithRecordType:@"Message"
                                predicate:predicate2
                                options:CKSubscriptionOptionsFiresOnRecordCreation];

where self.myRecordId is CKRecordID of the current logged user. I do this because I would like to receive notification when I create a new object (of type Message) but the problem is that notification never arrives. Anyone has idea why?

Wojtek
  • 1,006
  • 11
  • 30

1 Answers1

0

You should complete the missing steps described in the Quick Start Guide namely set the notification object, assign it to the subscription, and assign the subscription to the public database:

cksubscriptions

Please note the verification steps on the original source.

Tommie C.
  • 12,895
  • 5
  • 82
  • 100