React-native-push-notification: Sending remote push notifications for Android

Created on 21 Jan 2016  路  1Comment  路  Source: zo0r/react-native-push-notification

How should we sent remote push notifications for Android so we can test this feature?

For iOS I managed to send using https://github.com/nomad/houston but as it was mentioned in #6, it's unclear how to send notifications from a server to every device that has the app installed.

Most helpful comment

I managed in another node-module example to send a notification to Android through something like:

curl -X POST -H "Authorization: key=xxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type: application/json" -d '
{
  "data": {
    "info": {
      "subject": "Hello",
      "message": "Here I am!"
    }
  },
  "to" : "yyyyyyyyyyyyyyyyyyyyyyyyyyy"
}' 'https://gcm-http.googleapis.com/gcm/send'

>All comments

I managed in another node-module example to send a notification to Android through something like:

curl -X POST -H "Authorization: key=xxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "Content-Type: application/json" -d '
{
  "data": {
    "info": {
      "subject": "Hello",
      "message": "Here I am!"
    }
  },
  "to" : "yyyyyyyyyyyyyyyyyyyyyyyyyyy"
}' 'https://gcm-http.googleapis.com/gcm/send'
Was this page helpful?
0 / 5 - 0 ratings