-
Notifications
You must be signed in to change notification settings - Fork 227
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
Mobile> Camera doesn't get opened and user can't go live again when app is kept in background while live streaming and relaunched. #828
Comments
|
Hi @guoxianzhe thank you for your response |
I’ve attached a video showing the exact issue. Please take a moment to review it: The problem occurs when the app is sent to the background and then reopened—it either freezes or displays a black screen. I’ve handled the necessary permissions correctly, and my app is still running in the background during this issue. |
@shubh435 I think you should disableVideo when you goes to the background and enableVideo when you opens it manually. |
@guoxianzhe I tried that way as well but not working |
@shubh435 Could you pls tell me what version react-native-agora are you using? |
@guoxianzhe this is the version "react-native-agora": "4.3.2" |
@shubh435 Can you check this https://github.com/AgoraIO-Extensions/react-native-agora/tree/v4.3.2/example/src/examples/basic/JoinChannelVideo in your phone? this demo works fine. I think it should help you |
For React Native version 0.72.3, I tested this simple code locally, and it worked fine. However, when tested on React Native version "0.65.3", the code did not function as expected.
But I need the solution in this "react-native": "0.65.3", |
@shubh435 I think this is a react-native issue, maybe you can try to use https://reactnative.dev/docs/appstate to handle camera status manually(remember to re-render your video view manually too). |
Android device tested on:- Google pixel 7 &Redmi 13c
Android version tested on:- 14
Steps to reproduce:
Launch the app.
Log in as user with valid credentials.
Tap on the live stream button in the footer .
Tap on the go to live button .
After 5 seconds , get the app in the background and use another app for 4-5 seconds.
Get the current app in the background and launch the Swag tv app from background .
Observe
Workaround:- The user can go live by navigating to other screens and come back to the live streaming screen.
Expected:- When the app is getting to the background during live streaming an informative message for paused live streaming should be shown and on relaunching the app from background the camera should remains opened and live streaming should be resumed.
Actual: Camera doesn't get opened and user can't go live again when app is kept in background while live streaming and relaunched.
Note :- issue 2 > App responds in the same way when the app is unlocked after locking the mobile device.
"@types/react-native": "0.66.1",
"react-native": "0.64.4",
The text was updated successfully, but these errors were encountered: