So in iOS 10 you can now write notification service extensions that "intercept" push notifications so that you can download stuff and handle them before displaying them to the user.
However they require that the push payload has 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
doesn't), and so the service extension doesn't get called.
Is there a way to get CloudKit subscription notifications to work with UNNotificationServiceExtensions
?
This is now possible in iOS 11, look for the shouldSendMutableContent
property in CKNotificationInfo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With