Closed tpreusse closed 2 years ago
awesome! will test after lunch. How did you figure out it was related to the audioId?
I debugged with console.log
and realized that it called TrackPlayer.add
twice in quick succession (maybe 1ms). TrackPlayer.getCurrentTrack
, TrackPlayer.reset
and TrackPlayer.add
seem to be not race condition safe on android. Which then lead down a path with more stable audioId
s instead of auto play boolean etc.
I was able to reproduce the double play issue on Android in my emulator and managed to fix it there.
And I've created a patch to skip
canOpenURL
in the webview. Make sure to re-runyarn install
or the postinstall script.