NewPayload returns a new Payload struct
()
| 85 | |
| 86 | // NewPayload returns a new Payload struct |
| 87 | func 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. |
no outgoing calls