We have created a page push.hbs>push.html (src/templates/pages/push.hbs). This page is intended allow the admin to send push messages to the app's users.
This page needs to be completed with the appropriate javascript code using the aws sdk. When the admin clicks on send:
- if the message is empty (or >300 cars), display an error message
- if the message is OK, send it to topics arn:aws:sns:eu-west-1:105216790221:[name of publisher]_[name of app]_all, with the following syntax, and show a confirmation message:
{
"default": "[message]",
"APNS": "{\"aps\":{\"alert\": \"[message]\",\"sound\":\"default\"} }",
"GCM": "{ \"data\": { \"[message]\": \"<message>\" } }",
}
We have created a page push.hbs>push.html (src/templates/pages/push.hbs). This page is intended allow the admin to send push messages to the app's users.
This page needs to be completed with the appropriate javascript code using the aws sdk. When the admin clicks on send: