Expo
Create
Log in / Sign up
Roadmap
Feature Requests
Voters
SikarinPoonsawat
Kerli
Kaspar Triebstok
Hosmel Quintana
Kjetil Bruland
numano
Berkay Sargın
Hirbod
Eugene Sobolev
Danilo Canalle
and 660 more...
Powered by Canny
670
Audio playback in background
in progress
Brent Vatne

May 9, 2017
Activity
Newest
Oldest
Kaspar Triebstok

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!

0
·
2 days ago
·
Reply
Alex McKay

@Kaspar Triebstok: see the 'data' property of the 'Notification' object. https://docs.expo.io/versions/v35.0.0/sdk/notifications/#notification

0
·
21 hours ago
·
Reply
Sideok You

Is this working on now?

0
·
2 days ago
·
Reply
Hoppe Wang

on SDK 34 ios: Background playing is fine using expo client but when you unload and reload sound object, it paused.

0
·
November 9, 2019
·
Reply
apoorv pandit

How to make it work? Audio still stops when app is backgrounded on iOS as well as Android.

1
·
October 19, 2019
·
Reply
ernestph

I am still confused why playing audio in background is still not fully supported?

0
·
October 14, 2019
·
Reply
Daniel Nam

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!

https://expo.canny.io/feature-requests/p/add-react-native-music-control

6
·
September 20, 2019
·
Reply
Alejo Mendoza

Still not working for me on iOS SDK 34, not sure what I'm missing I added "UIBackgroundModes": ["audio"] and staysActiveInBackground: true

1
·
August 5, 2019
·
Reply
Ladislav Soukup

@Alejo Mendoza: are you testing on standalone app build? Background audio will not work in Expo client app, only in your own builds.

1
·
August 11, 2019
·
Reply
Alejo Mendoza

@Ladislav Soukup: Not working on my builds as well

0
·
August 11, 2019
·
Reply
J
Josh Justice

@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

1
·
September 15, 2019
·
Reply
Matt Goodwin

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?

0
·
July 22, 2019
·
Reply
S
Sayem Chowdhury

Please add support for switching to next Automatically!

0
·
July 22, 2019
·
Reply
Matt Goodwin

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.

0
·
July 19, 2019
·
Reply
Guert Geraldo

@Matt Goodwin: Yes it happens for me too but works well on standalone app.

1
·
July 19, 2019
·
Reply
Load More
→
Powered by Canny