From a59851b9a07305ab564e96e4fa6c97d11d2dde7e Mon Sep 17 00:00:00 2001 From: mjvm Date: Wed, 17 May 2017 13:45:33 +0100 Subject: [PATCH] add support for mutable content field --- models.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/models.go b/models.go index b3528ac..e72086d 100644 --- a/models.go +++ b/models.go @@ -92,6 +92,11 @@ type ( // Supported condition: Topic, formatted as "'yourTopic' in topics". This value is case-insensitive. // Supported operators: &&, ||. Maximum two operators per topic message supported. Condition string `json:"condition,omitempty"` + + // Currently for iOS 10+ devices only. On iOS, use this field to represent mutable-content in the APNS payload. + // When a notification is sent and this is set to true, the content of the notification can be modified before + // it is displayed, using a Notification Service app extension. This parameter will be ignored for Android and web. + MutableContent bool `json:"mutable_content,omitempty"` } // Downstream result from FCM, sent in the "results" field of the Response packet