Setting up push notifications

Hey folks.

Loving the cloudkit sync (and especially the public addition). I'm wondering whether there's any indication of whether we need to manually register our device for push notifications? Or, is the PersistantCloudKitContainer doing that for us?

Thanks in advance.

Steve
Hello Steve,

After adding the needed capabilities to your project, NSPersistentCloudKitContainer manages the notification configuration to keep your App (local storage) updated with the CloudKit storage. Here you can see the steps to enable the capabilities so your NSPersistentCloudKitContainer can keep your local data updated.

Now, keep in mind that the freshness of the data from a Public database is different than from a Private database, NSPersistentCloudKitContainer polls for changes on Application Launch and every 30 minutes, see more detail in this year's WWDC session Sync a Core Data store with the CloudKit public database - min 10:30.

Good luck and feel free to reach out.

Setting up push notifications
 
 
Q