|
@@ -831,12 +831,6 @@ function checkAndReset() {
|
|
|
|
|
|
|
|
|
|
|
|
-var my_media = {};
|
|
|
-function spengimi() {
|
|
|
- my_media.stop();
|
|
|
- $("#spegni-musica").hide();
|
|
|
-
|
|
|
-}
|
|
|
function onDeviceReadyPush() {
|
|
|
var push = PushNotification.init({
|
|
|
android: {
|
|
@@ -875,20 +869,6 @@ function onDeviceReadyPush() {
|
|
|
$("#alert-title").html(data.title);
|
|
|
$("#alert-message").html(data.message);
|
|
|
|
|
|
- // /*
|
|
|
- // * suona l'allarme
|
|
|
- // */
|
|
|
- // my_media = new Media("/android_asset/www/media/alarm.wav",
|
|
|
- // // success callback
|
|
|
- // function () {
|
|
|
- // console.log("play(): Success");
|
|
|
- // },
|
|
|
- // // error callback
|
|
|
- // function (err) {
|
|
|
- // console.log("play(): Error: " + JSON.stringify(err));
|
|
|
- // }
|
|
|
- // );
|
|
|
- // my_media.play();
|
|
|
});
|
|
|
|
|
|
push.on('error', function(e) {
|