Cordova Silent Mode
I have taken this project from francois-p-peloquin. So that I could add the package.json to make this project work.
This Cordova plugin checks if the phone ringer has been set to silent mode. Pleas note that this only works for iOS at the moment.
Installation
cordova plugin add https://github.com/khevamann/cordova-silent-mode
Usage
//Must be run before you wish to start observing changesSilentMode;SilentMode;
Other Use Example - Listener Library - ringer.js
var { data = typeof data !== 'object' ? {} : data; for var i in data thisi = datai; this;}; Ringerprototype = t: false dur: 200 { var Obj = this; SilentMode; } { var Obj = this; call = typeof call === 'function' ? call : {}; SilentMode; } { var Obj = this; call = typeof call === 'function' ? call : {}; var { Objt = ; }; if typeof Objcur === 'undefined' Obj; else var r = Objcur; ; } { var Obj = this; ; };
And then...
;
Supported Platforms
- iOS