MCPcopy
hub / github.com/sideshow/apns2 / MutableContent

Method MutableContent

payload/builder.go:219–222  ·  view source on GitHub ↗

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}}

()

Source from the content-addressed store, hash-verified

217//
218// {"aps":{"mutable-content":1}}
219func (p *Payload) MutableContent() *Payload {
220 p.aps().MutableContent = 1
221 return p
222}
223
224// Custom payload
225

Callers 1

TestMutableContentFunction · 0.80

Calls 1

apsMethod · 0.95

Tested by 1

TestMutableContentFunction · 0.64