Cordoba to play only media plugin

My Cordova 3.4 uses a plug-in for playback only for playback. But adding org.apache.cordova.media automatically asks for permission to record sound and access to external storage. I would like to remove these unnecessary permissions. Is there any way to do this?

+6
source share
2 answers

Once you have installed the media plugin, go to the plugins directory as part of your cordova project. Edit the two files and delete the permissions there:

1) android.json 2) org.apache.cordova.media/plugin.xml

When you create a new assembly using cordova, permissions should no longer be added.

UPDATE: But this is just a workaround ... if you installed or connected plugins again, you may have to edit the files again.

+4
source

I forked the official Media Apache plugin and simply removed these permissions. Part of my build process now includes running a command pointing to my forked repository:

cordova plugin add https://github.com/webnard/cordova-plugin-media.git#playback-only

+4
source

All Articles