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

Anomalous Permission Usage (for RECORD_AUDIO permission)

Open TheNotorius0 opened this issue 2 years ago • 0 comments

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 😄

In the meantime, I have created a fork that I will keep synced with the main plugin, but without the extra permissions: https://github.com/TheNotorius0/cordova-plugin-media

TheNotorius0 avatar Apr 15 '24 13:04 TheNotorius0