ionic-push
A node client for pushing android and ios notifications to your ionic app.
Install
npm install --save ionic-push
Usage
; const ionic = myJwt myProfile; ionic;
require
var IonicPush = default; var ionic = myJwt myProfile;
Api
new IonicPush
Create a new IonicPush instance.
Arguments
-
jwt
string required A valid ionic jwt -
profile
string required A valid ionic profile -
options
object optional Options object. -
options.Promise
promise optional Promise to overwrite for requests.
Returns
An IonicPush instance.
Example
; const ionic = myJwt myProfile;
testToken
Test if your token is valid.
Returns
A Promise.
Example
ionic;
push
Push a new notification.
Arguments
options
object required A valid ionic push object
Returns
A Promise.
Example
ionic;
checkStatus
Check the status of a notification.
Arguments
uuid
object required A valid ionic push uuid
Returns
A Promise.
Example
;