diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-13 15:51:57 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-13 15:51:57 -0500 |
| commit | 3dfb63fed3618c0540454e442cf7ca6329a32c1b (patch) | |
| tree | 9dd099693691ba112f1b4f405fa3feee297e881c /www | |
| parent | 07a0c77c39c2813748c276750083fed9ad9c0bb8 (diff) | |
don't play blop if phone is muted in iOS
Former-commit-id: 6a44cae68ce79ecbf39ea2743dc7eee7060f5166
Diffstat (limited to 'www')
| -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; |
