CloudKit and UNNotificationServiceExtension Subscriptions

So, in iOS 10, you can now write notification extensions that β€œcatch” push notifications so that you can upload files and process them before showing them to the user.

However, they require the push payload to have the 'mutable-content' key in aps set to 1. CloudKit subscriptions do not seem to return this key in the userInfo dictionary (at least CKDatabaseSubscription not), and therefore the service extension is not called.

Is there a way to get CloudKit subscription notifications for working with UNNotificationServiceExtensions ?

+5
source share
2 answers

Now it's possible in iOS 11, find the shouldSendMutableContent property in CKNotificationInfo

0
source

This is not currently possible.

(There is a post on the Apple forums where the developer suggests that someone create this as a function request. Someone already did, I plan on duplicating the request.)

+1
source

All Articles