diff options
Diffstat (limited to 'www/js/EventServer.js')
| -rw-r--r-- | www/js/EventServer.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/www/js/EventServer.js b/www/js/EventServer.js index ff2f9026..53889169 100644 --- a/www/js/EventServer.js +++ b/www/js/EventServer.js @@ -446,10 +446,10 @@ angular.module('zmApp.controllers') $rootScope.isAlarm = 0; $rootScope.tappedNotification = 1; } else { - // alarm received in foreground - //var str=data.additionalData.alarm_details; - console.log("PLAYING MEDIA"); - media.play(); + + // this flag honors the HW mute button. Go figure + // http://ilee.co.uk/phonegap-plays-sound-on-mute/ + media.play({ playAudioWhenScreenIsLocked : false }); var str = data.message; |
