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

Function NewPayload

payload/builder.go:87–93  ·  view source on GitHub ↗

NewPayload returns a new Payload struct

()

Source from the content-addressed store, hash-verified

85
86// NewPayload returns a new Payload struct
87func NewPayload() *Payload {
88 return &Payload{
89 map[string]interface{}{
90 "aps": &aps{},
91 },
92 }
93}
94
95// Alert sets the aps alert on the payload.
96// This will display a notification alert message to the user.

Callers 15

mainFunction · 0.92
TestEmptyPayloadFunction · 0.85
TestAlertFunction · 0.85
TestBadgeFunction · 0.85
TestZeroBadgeFunction · 0.85
TestUnsetBadgeFunction · 0.85
TestSoundFunction · 0.85
TestSoundDictionaryFunction · 0.85
TestContentAvailableFunction · 0.85
TestMutableContentFunction · 0.85
TestCustomFunction · 0.85
TestCustomMapFunction · 0.85

Calls

no outgoing calls

Tested by 15

TestEmptyPayloadFunction · 0.68
TestAlertFunction · 0.68
TestBadgeFunction · 0.68
TestZeroBadgeFunction · 0.68
TestUnsetBadgeFunction · 0.68
TestSoundFunction · 0.68
TestSoundDictionaryFunction · 0.68
TestContentAvailableFunction · 0.68
TestMutableContentFunction · 0.68
TestCustomFunction · 0.68
TestCustomMapFunction · 0.68
TestAlertTitleFunction · 0.68