My Cordova 3.4 application uses the media plugin for playback only. But adding org.apache.cordova.media automatically requests permission for recording audio and accessing external storage. I'd like to remove those unnecessary permissions. Is there any way to do so ?
After you installed the media plugin go into the "plugins" directory within your cordova project. Edit two files and remove the permissions there:
1) android.json 2) org.apache.cordova.media/plugin.xml
When you make a new build with cordova - permissions should not get added anymore.
UPDATE: But its just a workaround ... if you de/install any plugins again, you may have to edit files again.
I've forked the official Apache media plugin and just removed those permissions. Part of my build process now involves running the command that points to my forked repository:
cordova plugin add https://github.com/webnard/cordova-plugin-media.git#playback-only
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With