macOS CloudKit App Not Receiving Subscription Notifications

Originator:google
Number:rdar://30003160 Date Originated:2017-01-12
Status:Open Resolved:
Product:iCloud Product Version:10.12.2
Classification:Bug Reproducible:Always
 
Summary:

I am implementing CloudKit syncing in both macOS and iOS editions of an app.  The syncing works as expected on both, and the iOS app successfully receives push notifications of changes, but the macOS one does not.

See this bug report (by someone else) for code that demonstrates this issue: rdar://23804473

That bug report was for 10.11, but I am experiencing this issue on 10.12.2, so I assume it hasn't been fixed yet.

Is there any workaround?  I tried an idea someone suggested, of setting the soundName to an empty string, but that didn't help.

Steps to Reproduce:

Enable CloudKit syncing in the project settings.

Save a CloudKit subscription.

Register for remote notifications via:

[NSApp registerForRemoteNotificationTypes:NSRemoteNotificationTypeNone];

Successfully get the token in:

-application:didRegisterForRemoteNotificationsWithDeviceToken:

Never get a notification via:

-application:didReceiveRemoteNotification:

See that other bug report for details.

Expected Results:

-application:didReceiveRemoteNotification: gets called when a change is made on another device.

Actual Results:

-application:didReceiveRemoteNotification: is never called.

Version:

macOS version 10.12.2 (16C67).

Notes:

Related rdar://23804473

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!