Cloudkit & Background Notification

Hello,

I refer to this documentation: https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/setting_up_core_data_with_cloudkit

This worked for me, the data syncs between CoreData and iCloud.

Now the app in the xcode-simulator should be informed when on another device the data changed und synced to iCloud.

Like this documentation:
https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_background_updates_to_your_app

I implemented the function :didReceiceRemoteNotification in the AppDelegate. But the function never gets called in the simulator.
  • can the simulator receive Background Notifications?

  • is really nothing more neccessary than implementing the function didReceiveRemoteNotification?

  • how can I call a method in the present viewcontroller from the AppDelegate?

Thanks for hints
Klaus

Cloudkit & Background Notification
 
 
Q