doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.31k stars 1.02k forks source link

[Feature Request] Is there a way to disable/delete Foreground Service in Android? #2404

Closed ppanwin10 closed 1 week ago

ppanwin10 commented 1 week ago

What is the need and use case of this feature? My app release was rejected by the Play Store due to having FOREGROUND_SERVICE_MEDIA_PLAYBACK configured. However, my app only plays sounds while it is actively in use. Is there a way to remove or disable the FOREGROUND_SERVICE_MEDIA_PLAYBACK setup in this case? Your package has been very helpful, and I'd prefer not to switch to a different one.

I tried to remove the FOREGROUND_SERVICE_MEDIA_PLAYBACK but the app would be crashed.

Describe the ideal solution Having the ability to disable FOREGROUND_SERVICE_MEDIA_PLAYBACK user permission.

lovegaoshi commented 1 week ago

nope. u should seek other alternatives like expo-audio if u dont need a foreground service.

ppanwin10 commented 1 week ago

nope. u should seek other alternatives like expo-audio if u dont need a foreground service.

Got it, thanks for confirming!