gsiuniak / cordova-silent-mode

Check if an iOS device is in silent mode or not.
Apache License 2.0
1 stars 0 forks source link

How to use into Ionic mobile app #1

Open vishal-revdiwala opened 3 years ago

vishal-revdiwala commented 3 years ago

Anyone suggest how to make use of this available plugin, as I tried installation with this command:

cordova plugin add https://github.com/gsiuniak/cordova-silent-mode But when I am trying to access SilentMode.init(), it's throwing error: not found.

numerized commented 2 years ago

yes, so you just do that on top of your declarations

declare var SilentMode;

it should work, though I cannot make it detect ringer off (silent) it is always reporting ringer ON