Skip to content

Implement push messages  #4

@libreliodev

Description

@libreliodev

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>\" } }", 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions