From fa341173e9f76c38787245c2db4dc96353f29f76 Mon Sep 17 00:00:00 2001 From: halphass Date: Tue, 7 Mar 2017 23:09:40 +0100 Subject: [PATCH] @inizializzazione push plugin --- www/js/main.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/www/js/main.js b/www/js/main.js index 15ef281..f7b9bd3 100644 --- a/www/js/main.js +++ b/www/js/main.js @@ -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('
  • REQ A2A: '+ data +'
  • '); }); }); 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)); }); };