on SDK 34 ios: Background playing is fine using expo client but when you unload and reload sound object, it paused.
How to make it work? Audio still stops when app is backgrounded on iOS as well as Android.
I am still confused why playing audio in background is still not fully supported?
would this also include being able to have audio controls from the lock screen?
**edit - just saw that there was a separate request for the lock screen controls. upvote if you'd like this feature as well!
Still not working for me on iOS SDK 34, not sure what I'm missing I added "UIBackgroundModes": ["audio"] and staysActiveInBackground: true
@Alejo Mendoza: are you testing on standalone app build? Background audio will not work in Expo client app, only in your own builds.
@Ladislav Soukup: Not working on my builds as well
@Alejo Mendoza: I'm also having the same experience, not working for me on iOS SDK 34 with "UIBackgroundModes": ["audio"] and staysActiveInBackground: true. Running in a standalone app build created with expo build:ios
Anyone know if this could be harnessed to play audio on push notification receive in order to get around Expo's inability to customize the push sound?
Please add support for switching to next Automatically!
Using v33 I play a sound and then leave the Expo client back to the home screen and the sound stops. When I open the Expo client again, it resumes playing. Currently testing in iOS. Seems like it will play only in foreground. Used setAudioModeAsync to set background audio as enabled. Not sure what I'm missing here.
@Matt Goodwin: Yes it happens for me too but works well on standalone app.
Uhh.. Do i need to download the latest expo-cli to make this work on my app... ??
Love that the background audio playback is working now! Thank you Expo team!
Is the lock screen player control something I can implement? Or is that not possible via Expo? If so, can you point me to any information that will help me build that piece?
@Larry J Rutledge: only when you eject for now - https://github.com/tanguyantoine/react-native-music-control (https://forums.expo.io/t/expo-av-audio-ios-support-for-control-center-lock-screen-control-etc/24235)
I have created feature request for this - https://expo.canny.io/feature-requests/p/add-react-native-music-control