i'm developing an app using cordova and ionic. This app will be used as alert security system, so if the user unplug the lightning cable from the phone, an alert sound will fire.
The problem: If the user set the phone to silent/vibe, the sound will not play;
So, what i need to know is, with cordova, is there a way i can:
1- Disable volume buttons, so the user can't change and set to silent/vibe? 2- Control the device volume (IOS/Android), so when the cable is off, the volume will be max and the sound will play?
Thanks guys!
EDIT
The link sent is not working, missing documentation is complicated to make it work.