i got null when calling getCurrentTrack (song is playing)
let state = await TrackPlayer.getState(); // return state
let trackId = await TrackPlayer.getCurrentTrack(); // return null
platform Android
react-native 0.49.3
react 16.0.0-beta.5
i am getting same issue.am i handling promise in wrong way.
Are you still facing this issue in 1.0.0?
@Guichaguri yeah i am still facing issue i am able to get play state and other progress variables but not able to get current track.plz guide me .i am working on android.
same issue
When this track is added to Trackplayer
It happened because I did not add the unique id attribute.
It works well.
TrackPlayer.getCurrentTrack () was to return this unique id attribute.
I'll be closing this issue. Feel free to reopen it if you're still having problems.