-
Notifications
You must be signed in to change notification settings - Fork 100
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
Screen Broadcast Stops Unexpectedly After short time when app is in background #510
Labels
bug
Something isn't working
Comments
I created simple app to verify this error and I have reproduction, but now with more logs. It seems that problem is with processing background task, but what is the need of using them? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The screen broadcasting session on iOS/iPadOS automatically stops after short time (from 30 seconds to 5 minutes) after moving main app to background. This issue is consistently reproducible in production environments. When running the app with an attached debugger, the broadcast session does not stop, but it repeatedly logs an error in Console.app:
In the production build, the broadcasting stops automatically when this error occurs. The issue seems unrelated to the LiveKit SDK version, as it persists across versions 2.0.4, 2.0.15, and 2.0.17. Previously, the broadcasting feature worked correctly without this problem what is weird. Moreover, when the session is running while the main app is in the foreground, it can continue working all day without interruption.
SDK Version
iOS Version
Xcode Version
Steps to Reproduce
0a. Launch app without debbuger connected.
0b. When running with an attached debugger, observe the error logs in Console.app.
5a. The broadcast stops automatically.
5b. Error in Console.app occurs as in Logs section, stream is continued.
Expected Behavior
The screen broadcast session should continue without interruption, as it did in previous SDK and iOS versions, without stopping after short time.
Screenshots
Project settings:
Logs
Full file: Logs.txt
Sample logs from Console.app which are suspicious:
Please advise if there are any known workarounds or fixes for this issue.
The text was updated successfully, but these errors were encountered: