Skip to content

Commit

Permalink
Update GCM mesasge structure
Browse files Browse the repository at this point in the history
To give more power to the client implementation for how to present
notifications we move away from triggering system native notifications
and just move to a plain data object container. This will help with
extending the data model in the future.
  • Loading branch information
Alexander Simmerl committed Dec 8, 2016
1 parent 58ce105 commit 8315502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/sns/sns.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (
fmtURN = `%s://%s`
msgAPNS = `{"APNS": "{\"aps\": {\"alert\": \"%s\"}, \"urn\":\"%s\"}" }`
msgAPNSSandbox = `{"APNS_SANDBOX": "{\"aps\": {\"alert\": \"%s\"}, \"urn\":\"%s\"}" }`
msgGCM = `{"GCM": "{\"notification\": {\"title\": \"%s\", \"data\": {\"urn\": \"%s\"}} }"}`
msgGCM = `{"GCM": "{\"data\": {\"title\": \"Social\", \"body\": \"%s\", \"urn\": \"%s\"} }" }`
)

// PlatformIdentifiers helps to map Platfrom to human-readable strings.
Expand Down

0 comments on commit 8315502

Please sign in to comment.