I want to set up a simple CKSubscription
that notifies me a recordType
was created, how?
How to set up a minimal CKSubscription?
2.2k Views Asked by János At
2
There are 2 best solutions below
4

Did you register for notifications? You should have something like this in your application didFinishLaunchingWithOptions:
application.registerUserNotificationSettings(UIUserNotificationSettings(forTypes: .Alert | .Badge | .Sound, categories: nil))
application.registerForRemoteNotifications()
I created a working demo that is available at https://github.com/evermeer/EVCloudKitDao
After experimenting a while this is how to setup a minimal CKSubscription. You have to test it on Device, push notification does not work on simulator. You can add record in Dashboard, that will trigger push notification too.