nofelmahmood / Seam

Seamless CloudKit Sync with CoreData
https://medium.com/@Nofel/reason-why-cloudkit-cannot-be-ignored-9c7806d76230
MIT License
671 stars 65 forks source link

Push configuration #29

Open pronebird opened 8 years ago

pronebird commented 8 years ago

I am trying to figure out whether app should register for remote notifications or implementing didReceiveRemoteNotification should be sufficient enough.

To be fair I am not much familiar with CloudKit, and looking at both README and demo app I see inconsistencies.

Demo app does not register for remote notifications nor handles remote notifications. Is this somehow intentional?

How does one configure Seam to receive live updates from CloudKit?

paulw11 commented 8 years ago

You will need to register for remote notifications in your app delegate. Something like

let notificationSettings = UIUserNotificationSettings(forTypes: .Alert, categories: nil)
application.registerUserNotificationSettings(notificationSettings)
application.registerForRemoteNotifications()