-
-
Notifications
You must be signed in to change notification settings - Fork 271
React Native Music controls does not appear on real iOS device lock screen at all #366
Comments
i have did some workaround for android double notification issue. |
lock controls are displaying for me on iOS 14. I've ran into an issue on iOS but not on Android such that if there were multiple instances of some media content, you would want to ensure that the media content you'd want to display within the lock controls isn't being mixed with another media instance. natively the code has issues differentiating what media content takes precedence even if you've set native props for now playing/update playback. |
I'm having this same problem, have also tried earlier versions of this project and can't seem to get anything to show up the IOS lock screen |
Figured out my issue at least, I'm working with react-native-community/audio-toolkit and there's a bug that doesn't let their mixWithOthers flag ever get set to False, you can test this by playing your app audio at the same time as another app's audio. If you're audio can play at the same time as another app's audio, then react-native-music-control will not work. Merging this commit into your code should solve the mixWithOthers issue in react-native-audio-toolkit, which should make your lock screen controls from this package work. |
apparently i am using |
@krunalbad do you set mixWithOthers to false on both those packages and react-native-music-controls still doesn't work? Try checking whether those flags are being obeyed, i.e. whether you can play audio at the same time as another app. |
i have tried mixWithOthers in both pkgs trackplayer and rn-video but none helped probably the main issue is with integrating these many pkgs together which maybe be creating conflicts i guess |
Closing this issue due to other pkgs conflicts |
Uh oh!
There was an error while loading. Please reload this page.
React Native Music controls does not appear on real iOS device lock screen at all
but appears on iOS simulator but controls does not work at all
but same code works 99% on android
except in android the notification does not go away on reset function
react-native: 0.63.2
react-native-music-control: 1.4.0-alpha
https://www.npmjs.com/package/react-native-music-control/v/1.4.0-alpha
Is there any other setup required for iOS ?
The text was updated successfully, but these errors were encountered: