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.25k stars 1k forks source link

Unable to start service MusicService with null: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false #2244

Open bradfloodx opened 8 months ago

bradfloodx commented 8 months ago

Describe the Bug Daily crash reports of Unable to start service com.doublesymmetry.trackplayer.service.MusicService with null: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false

Steps To Reproduce Unknown. Will update if I can replicate consistently.

Code To Reproduce NA

Replicable on Example App? Not yet.

Environment Info:

How I can Help Looking into it.

ayushmahajan12 commented 1 month ago

Hi Team,

I'm experiencing the same issue as mentioned in the above chat. Could you please help with this? According to the Google Console report, my app is crashing multiple times in the background.

Thanks in advance!