Not receiving CloudKit push notifications for Custom Record Zone on the Mac

前端 未结 2 629
日久生厌
日久生厌 2021-02-09 08:40

I\'ve setup a custom zone subscription to receive (silent) push notifications from my custom record zone. Everything works fine on my iOS devices but I\'m not able to receive th

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-09 09:31

    Simply extracting the correct solution from one of the shared links: If you use a CKNotificationInfo for your alerts, didReceiveRemoteNotification will NOT be called on the Mac until and unless you set CKNotificationInfo.soundName to an empty string! This looks like a bug only in OS X (10.10 & 10.11 so far) but can be worked around by this simple change.

提交回复
热议问题