Skip to content

Latest commit

 

History

History
48 lines (25 loc) · 1.3 KB

File metadata and controls

48 lines (25 loc) · 1.3 KB

Cordova+Capptain-Reach

Cordova Plugin for Capptain Reach Data Push.

At a glance

Capptain Reach module manages reach functionalities. It listens push messages and notify the user about annoncements and polls.

Capptain Data Push is not like iOS APNS or Android GCM. It lets you send specified messages. This message contains 2 infos: category and body.

More info about Capptain Reach module.

Installation

Add the following plugin to your Cordova/Ionic project:

cordova plugin add https://github.com/we-studio/cordova-plugin-capptain-datapush.git

Usage

// start listening Capptain Reach data push 
window.CapptainDataPushPlugin.initialize();


// handle data push message
window.CapptainDataPushPlugin.onReceiveStringDataPush = onReceiveStringDataPush;

function onReceiveStringDataPush(category, body) {
    // do anything with category and body
}

TODO

  • iOS support
  • Android support
  • available in Cordova/npm plugins list

Credit

This Cordova plugin is developed by Westudio team empowered by Wemanity.