How can I get the ringer status / silent status of a device using Cordova?
<p>I am developing a mobile application using Ionic and Cordova and would like to play a sound based on device <code>Ringer Mode status</code>. </p>

<p>Is there any way I can get to know the device Ringer mode status:</p>

<pre><code>vibration
silent
normal
</code></pre>

<p>I found an example for Android <a href="https://stackoverflow.com/questions/2048427/how-can-i-detect-whether-the-android-phone-in-silent-mode-programatically">here</a>.</p>