Chrome push notification extension for anything
{
"default": "This is the default message which must be present when publishing a message to a topic. The default message will only be used if a message is not present for one of the notification platforms.",
"GCM": "{ \"data\": { \"title\": \"Hello world !\",\"message\": \"Save le koala.\", \"iconUrl\": \"assets/img/app_icon.png\"}}"
}
{
"TopicArn": "arn:aws:sns:us-west-2:527728718473:pingme-general",
"Message": "$util.escapeJson('{
"default": "$event.simpleName with trace ID $event.traceId triggered at $event.timestamp",
"GCM": "{ \"data\": { \"title\": \"$issue.key\", \"message\": \"Issue has moved to: Ready\", \"url\": \"$issue.self\", \"iconUrl\": \"assets/img/jira_icon.png\"}}"
}')",
"MessageStructure": "json",
"Subject": "Automation with AWS: $event.simpleName triggered at $event.timestamp"
}
aws sns publish --topic-arn "arn:aws:sns:us-west-2:527728718473:pingme-general" \
--message-structure "json" \
--message '{ "default": "This is the default message which must be present when publishing a message to a topic. The default message will only be used if a message is not present for one of the notification platforms.", "GCM": "{ \"data\": { \"title\": \"lenowng/pingme\", \"message\": \"lenowng has initiated a pull request to Master \", \"url\": \"$issue.self\", \"iconUrl\": \"assets/img/github_icon.png\"}}"}'
aws sns publish --topic-arn "arn:aws:sns:us-west-2:527728718473:pingme-general"
--message-structure "json"
--message "{"default": "Sample fallback message", "GCM": "{ \"data\": { \"title\": \"lenowng/pingme\", \"message\": \"lenowng has initiated a pull request to Master\", \"iconUrl\": \"assets/img/github_icon.png\"}}"}"
{ "default": "Sample fallback message", "GCM": '{ "data": { "title": "lenowng/pingme", "message": "lenowng has initiated a pull request to Master", "url": "$issue.self", "iconUrl": "assets/img/github_icon.png"}}'}