CKDatabaseSubscription and CKNotificationInfo’s desiredKeys

Is it possible to use the CKNotificationInfo's desiredKeys property for the CKDatabaseSubscription?

I'd like to use have access to those values in the AppDelegate function application:didReceiveRemoteNotification:fetchCompletionHandler:.

When I try to create subscriptions now with desiredKeys, I get an error reading "cannot add additionalFields to this subscription type." While I expect that is indeed correct and CKDatabaseSubscription cannot include desiredKeys quite yet, I figured I should check with the StackOverflow community before connecting with Apple's CloudKit engineers.

Thanks, y'all!

Read more here:

Content Attribution

This content was originally published by avs at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: