push_to_urbanairship
Version:
Easy config and push function to Urban Airship phone notifications
28 lines (17 loc) • 455 B
JavaScript
var auth= {
key: "app key",
master:"app master key"
},
pushToUA = require('./../pushToUrbanAirship')(auth),
sampleToken= "your sample ios device_token";
pushToUA( {
"audience" : {
"device_token" : sampleToken
},
"notification" : {
"alert" : "Hello - from vlad again - tell me if u get this plz2."
},
"device_types" : "all"
} , function(err, resp, body){
console.log(body);
});