this is now partially supported, but you cannot control the audio playback with operating system controls yet
Hi, is there a straight forward tutorial on how to handle background notifications (app closed or phone sleeping) on expo? Audio is surely needed, but there are questions regarding handling the payload itself. Thanks!
@Kaspar Triebstok: see the 'data' property of the 'Notification' object. https://docs.expo.io/versions/v35.0.0/sdk/notifications/#notification
Is this working on now?
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.