parse-server-modules / parse-server-onesignal-push-adapter

OneSignal push adapter for parse-server
MIT License
32 stars 28 forks source link

Added support for new mutable_content param #25

Closed tanmays closed 8 years ago

tanmays commented 8 years ago

Adds support for mutable_content so that OneSignal can correctly trigger the new Notification Service Extensions support in iOS 10.

Using this in parse is same as you use the content-available param. Just pass "mutable-content": 1 to your payload dict.

From OneSignal Docs

mutable_content: booleanOptional iOS 10 feature used to trigger didReceive(_:withContentHandler:) on your UNNotificationServiceExtension. This allows you to change the notification content in your app before it is displayed.