Skip to content

Commit

Permalink
Updated publish_to_fcm_endpoint.go: Added default key in the message.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-s-parmar authored Dec 18, 2024
1 parent b55b76c commit ee0fd02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gov2/sns/publish_to_fcm_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func main() {
}

message := map[string]interface{}{
"default": "Default Value",
"GCM": string(notificationDataJSON),
}

Expand Down Expand Up @@ -75,7 +76,8 @@ func main() {
// JSON marshalling, you can do that by passing it in the following format:
//
// Message: aws.String(
// "{\"GCM\":\"{\\\"notification\\\":{" +
// "{\"default\":\"Default Value\","+
// "\"GCM\":\"{\\\"notification\\\":{" +
// "\\\"body\\\":\\\"Body\\\"," +
// "\\\"title\\\":\\\"Title\\\"" +
// "}," +
Expand Down

0 comments on commit ee0fd02

Please sign in to comment.