0

I have the problem that CloudKit notifications are not delivered to all devices when my app was started on the device. However, everything works fine if the app has been started from XCode.

In specific:

  • Device A saves a record
  • On the server, there is a CKQuerySubscription that fires a notification on record change
  • According to the server log, this notification gets pushed
  • However, device B will only receive the notification if the app got started from XCode. It will not if it got started from the home screen.
  • To make it perfect: If I save a record on device B (no matter if the app got started from Xcode or home screen), device A will always receive the notification.

Would be glad to receive any hint notifications ;-) Udo

4

1 回答 1

0

我通过在 Xcode 的 Capabilities / Background Modes 区域中启用后台远程通知和后台获取来为我工作。现在我的应用程序可以在不从 Xcode 运行时接收 CloudKit 通知。

于 2018-02-01T09:08:34.093 回答