I really dont know how to play background music in react native expo .. I tried lot to add music .. since Im beginner I couldn't found please help me
Asked
Active
Viewed 2,817 times
3 Answers
1
It will work on Android but will not work on iOS with expo. Need to add the following code in the app.json -
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.yourcompany.yourappname",
"buildNumber": "1.0.0",
"infoPlist": {
"UIBackgroundModes": [
"audio"
]
}
},
After that, You have to create standalone application of iOS and it will work on standalone application.

Suraj Rao
- 29,388
- 11
- 94
- 103

Dinesh Malhotra
- 21
- 1
0
You can try this library it take mp3 from bundle or you can stream: https://github.com/react-native-kit/react-native-track-player#readme

Lukáš Šálek
- 1,265
- 2
- 19
- 38
-
Tnx for reply sir – Arun.k Nov 07 '19 at 16:52
0
This feature is not supported yet By Expo APIS
You can check the current state of this Expo feature request
https://expo.canny.io/feature-requests/p/audio-playback-in-background

Rebai Ahmed
- 1,509
- 1
- 14
- 21