MutableContent sets the aps mutable-content on the payload to 1. This will indicate to the to the system to call your Notification Service extension to mutate or replace the notification's content. {"aps":{"mutable-content":1}}
()
| 217 | // |
| 218 | // {"aps":{"mutable-content":1}} |
| 219 | func (p *Payload) MutableContent() *Payload { |
| 220 | p.aps().MutableContent = 1 |
| 221 | return p |
| 222 | } |
| 223 | |
| 224 | // Custom payload |
| 225 |