Skip to content

benrondeau/Ionic-Push-Notification-NodeJS-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ionic Push REST API via Node.js

NPM version Gitter

Node.js server using Ionic Push REST API to send push notifications on iOS and Android.

Requirements

Example Usage:

var ionicPushServer = require('ionic-push-server');

var credentials = {
    IonicApplicationID : "myID",
    IonicApplicationAPItoken : "myIonicAPItoken"
};

var notification = {
  "tokens": ["your", "device", "tokens"],
  "profile": "my-security-profile",
  "notification": {
    "title": "Hi",
    "message": "Hello world!",
    "android": {
      "title": "Hey",
      "message": "Hello Android!"
    },
    "ios": {
      "title": "Howdy",
      "message": "Hello iOS!"
    } 
};

ionicPushServer(credentials, notification);

Problems? Join the discussion on Gitter or file an issue. Thanks!

License

GNU General Public License v3

About

NodeJS Server for Ionic Push REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published