Open watadarkstar opened 3 months ago
same issue MusicService$setupForegrounding: Notification has been stopped
Same issue here - the notification no longer shows on Android on v4.1.
EDIT: I did find a solution to my problem - for more context, I recently upgraded RNTP from v2.1 to v4.1.1. After upgrading it, I lost notifications / media controls on Android.
Here's why: I forgot to wait for the setupPlayer
promise to resolve. It seems that it wasn't an issue with v2.1, but v4.1.1 just won't have it. So make sure to await TrackPlayer.setupPlayer()
before you call any other function.
Hopefully this can help someone else in the future.
Describe the Bug When I play something the media notification will show up but then it quickly gets removed.
Steps To Reproduce Play audio/video with the following code And make sure to add an HLS track
Code To Reproduce
Replicable on Example App? Can you replicate this bug in the React Native Track Player Example App?
Environment Info:
I tried both 4.1.1 and 4.0.1
Real device? Android Samsung Tab S6 Lite
What OS are you running? Android 14
How I can Help
Android adb logs: