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

前端 未结 2 1303
盖世英雄少女心
盖世英雄少女心 2021-02-09 08:51

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:38

    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.

提交回复
热议问题