kohlivarun5 / Ionic-Push-Notification-NodeJS-Server

NodeJS Server for Ionic Push REST API (currently in alpha release).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ionic Push REST API for iOS

NPM version Gitter

NodeJS server using Ionic Push REST API to send push notifications on iOS. Based on ionic@1.4.0-alpha.6 release.

Requirements

Example Usage:

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

var credentials = {
    IonicApplicationID : "myID",
    IonicApplicationAPIsecret : "myAPIsecret"
};

var notification = {
  "tokens":["myDeviceToken"],
  "notification":{
    "alert":"Hi from Ionic Push Service!",
    "ios":{
      "badge":1,
      "sound":"chime.aiff",
      "expiry": 1423238641,
      "priority": 10,
      "contentAvailable": true,
      "payload":{
        "key1":"value",
        "key2":"value"
      }
    }
  } 
};

ionicPushServer(credentials, notification);

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

About

NodeJS Server for Ionic Push REST API (currently in alpha release).


Languages

Language:JavaScript 100.0%