cordova-plugin-nativeaudio icon indicating copy to clipboard operation
cordova-plugin-nativeaudio copied to clipboard

Is READ_PHONE_STATE necessary?

Open philipbrack opened this issue 8 years ago • 4 comments

Does this plugin need the following permission?

philipbrack avatar Jan 26 '17 04:01 philipbrack

This is a dangerous permission. Why do you need this?

lughino avatar Feb 07 '17 10:02 lughino

I've also had to remove this permission from my apps, so made a fork which doesn't require READ_PHONE_STATE. You can check it here https://github.com/vintage/cordova-plugin-nativeaudio

vintage avatar Feb 20 '17 18:02 vintage

Please explain, why you need this permission on Android. Either it has to be in there for some reason or remove it. Makes no sense to create a fork for removing a single line in the plugin.xml.

Trixt0r avatar Jul 12 '18 08:07 Trixt0r

related https://stackoverflow.com/questions/40200594/why-does-cordova-plugin-media-need-the-read-phone-state-permission

It seems cordova plugin is listening for state changes such as ringing or idle to mute the audio

ahmed-nabil-elagder avatar Jan 01 '21 03:01 ahmed-nabil-elagder