React-native-track-player doesn't work with React Native 0.63.2 on Android. When I try to play something, nothing happens. No errors, no warnings, just silence. Please do note that it was working perfectly with 0.62.1. I just created a fresh project and moved my source code.
To Reproduce
Create a new project with React Native 0.63.2 and try to play something.
Environment (please complete the following information):
react-native info in your project and share the content.What react-native-track-player version are you using?
Tried with both 1.2.2 and 1.2.3
Are you testing on a real device or in the simulator? Which OS version are you running?
Tested on Emulator with Android 10.0 and a real device also running Android 10.
Can confirm the issue is with React Native 0.63.x. I downgraded my project to 0.62.2 and everything's working again
Facing the same issue, would be nice to find a workaround
I have the same issue (rn 0.63.2) but only on Android 4.x and 5.x (tried only on emulators). Track is buffered, but playing is not started.
Finally I got it worked. Seems it was caches problem in my case.
I had some crash not connected to react-native-track-player.
While solving it I tried to remove different caches like rm -rf $HOME/.gradle/caches/, removed node_modules and reinstall packages, but nothing helped.
Finally I ran cd android && ./gradlew clean and that crash disappeared. Then I noticed that player got work in all versions of Android!
I am not sure what helped exactly, but try these solutions, hope it help somebody.
For me, it works with "0.63.2". I came here only because I forgot to run TrackPlayer.play() after I added some tracks to the list. Maybe you have the same silly issue?
Can confirm the issue is with React Native 0.63.x. I downgraded my project to 0.62.2 and everything's working again
Hey guys, any new clue about the lib not working with RN 0.63.2 ? The player works very well on simulator (for remote and local urls), on device, everything seems to load (tracks uploaded and recognised by the player) but the play() doesn't seem to work, no sound, no progress... It behaves a bit like an instant pause after play.
Actually, not working on 0.62.2 either
Any tips ?
Thanks a lot
Version 1.2.3 doesn't work on iOS for me, but works on Android. RN 0.62.2