didReceiveRemoteNotification never calls

Originator:ezekielelin
Number:rdar://27940438 Date Originated:21-Aug-2016
Status:Duplicate of 27841935 (Closed) Resolved:
Product:OS X SDK Product Version:OS X 10.11.6 (15G31)
Classification: Reproducible:
 
Summary:
I am attempting to set up a CKSubscription for record changes. While the subscription does save, and my app gets a badge/notification in notification center, 

    func application(_ application: NSApplication, didReceiveRemoteNotification userInfo: [String : Any])

is never called.

See 23804473

Steps to Reproduce:
1. Create CKSubscription and save. Verify CloudKit dashboard.
2. Register your app for remote notifications. Verify using didRegisterForRemoteNotificationsWithDeviceToken.
3. Receive notifications. Verify by visual inspection of app badge or notification center.
4. Attempt to intercept/receive in program, using didReceiveRemoteNotification. This fails.

Expected Results:
I would expect didReceiveRemoteNotification to be called when the badge increases or a notification appears in notification center.

Actual Results:
didReceiveRemoteNotification never calls.

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!