:beetle: Description
Hi, I have a question about having native audio player working on locked device screen or in background (in top bar). That doesn't work on both iOS & Android.
It behaves differently on iOS & Android. On iOS after locking screen - audio stops. On Android after locking screen - audio continues playing.
I would like something like this:
:beetle: What have you tried?
I tried setting Sound.setCategory('Playback'); together with updating Info.plist file, like this:
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
But that doesn't change anything.
Issue is with both:
I'm using
Versions:
Problem occurs on both:
same issues
@jelenanesic It might help you react-native-track-player
@Bang9 I've found that, but that library uses old version of React Native.
@Bang9 I've found that, but that library uses old version of React Native.
Why are you think so?
@Bang9 you can check it on their issue, since July they are trying to switch to RN 0.60.
@jelenanesic hmm.. 馃support RN 0.60 means migrate to AndroidX
my product is working perfectly with RN 0.61.2 and RNTrackPlayer
If you have a problem of AndroidX, you can resolve the issue using jetifier
are there any news on this issue?
Most helpful comment
@jelenanesic hmm.. 馃support RN 0.60 means migrate to AndroidX
my product is working perfectly with RN 0.61.2 and RNTrackPlayer
If you have a problem of AndroidX, you can resolve the issue using jetifier