|
@@ -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));
|
|
|
});
|
|
|
};
|
|
|
|