Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop working when app in background. #39

Closed
XavierColombel opened this issue Nov 14, 2016 · 5 comments
Closed

Stop working when app in background. #39

XavierColombel opened this issue Nov 14, 2016 · 5 comments

Comments

@XavierColombel
Copy link

Is there a way to get it working when app is in background?

@tlenclos
Copy link
Owner

It should always work in background, do you have any error logs ?

@XavierColombel
Copy link
Author

XavierColombel commented Nov 15, 2016

On simulator it works. On device, sound cuts when app is in background. I've tested on iOS : device (v9.3.5) and simulator (v10). I use RN 0.37. No error logs.

@XavierColombel
Copy link
Author

Here is a sample app if you wanna test : https://github.com/XavierColombel/react-native-radio

@tlenclos tlenclos added bug and removed bug labels Nov 16, 2016
@tlenclos
Copy link
Owner

I think this is because you don't have the background mode enable on the Info.plist file.
See the example project https://github.com/tlenclos/react-native-audio-streaming/blob/master/Example/ios/Example/Info.plist#L53.

I will add this to the README.

@XavierColombel
Copy link
Author

Perfect! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants