Notification Service Extension

The docs in UNNotificationServiceExtension state:


When a remote notification for your app is received, the system loads your extension and calls its

didReceive(_:withContentHandler:)
method only when both of the following conditions are met:
  • The remote notification is configured to display an alert.
  • The remote notification’s
    aps
    dictionary includes the
    mutable-content
    key with the value set to
    1
    .


How is it possible to set the mutable-content key to 1 on the notification info when configuring a CKSubscription?

Replies

Same problem.

I asked myself the same thing... I suppose it's not supported at the moment.

Here's hoping for a future shouldSendMutableContent flag like the current shouldSendContentAvailable in a future release of CloudKit! 🙂

If the functionality of a framework doesn't fit what you need, please file a bug report asking for an enhancement to what we provide. We track feature requests as well as bugs in our bug database.

Feature request submitted.

Would you happen to have a radar or Open Radar number available for reference? I'd like to dupe this request. Thank you for submitting it.