@inizializzazione push plugin

This commit is contained in:
halphass 2017-03-07 23:09:40 +01:00
parent 28a788e219
commit fa341173e9

View file

@ -849,27 +849,20 @@ function onDeviceReadyPush() {
// console.log(JSON.stringify(registration));
var url = "https://xm.bus.pm/api/d/c?device=" + registration.registrationId;
$.get(url, function( data ) {
// alert(data);
// console.log(data);
// console.log(data);
// console.log(data);
// console.log(data);
console.log(JSON.stringify(data));
console.log(JSON.stringify(data));
// $(".hiddendiv").append('<li>REQ A2A: '+ data +'</li>');
});
});
push.on('notification', function(data) {
// alert(data.message);
// data.message,
// data.title,
// data.count,
// data.sound,
// data.image,
// data.additionalData
console.log(JSON.stringify(data));
console.log(JSON.stringify(data));
});
push.on('error', function(e) {
// e.message
console.log(JSON.stringify(e));
console.log(JSON.stringify(e));
});
};