apache / cordova-plugin-media

Apache Cordova Media Plugin
https://cordova.apache.org/
Apache License 2.0
390 stars 763 forks source link

Anomalous Permission Usage (for RECORD_AUDIO permission) #397

Open TheNotorius0 opened 2 months ago

TheNotorius0 commented 2 months ago

Feature Request

Since I don't use this plugin to record audio, but only to play music / sounds (as probably many other developers do too), it would be nice if there was a way to NOT include the RECORD_AUDIO permission (both for Android and iOS). Also, for some categories of apps, Google apparently doesn't like this RECORD_AUDIO permission.

Motivation Behind Feature

Useful if you don't need to use the record feature. Also resolves this problem with Google:

anomalous-permission-usage

Feature Description

I don't know how exactly it could be done without a fork, but maybe just add a variable to NOT include the RECORD_AUDIO permission? Like --NO-RECORD_AUDIO. Actually, there is also the MODIFY_AUDIO_SETTINGS permission, I think it could be removed too if you only want to play music (I'm not 100% sure though)

Alternatives or Workarounds

If anyone have any idea on how to remove this permission (or maybe there is already a feature like this and I haven't founded it), let me know 😄