-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Bug] Logging in after connecting telnyx causes LateInitialization error #26
Comments
Same Issue... still no solution |
Did you try connecting after a delay? |
solved It this error comes when you try to connect client and login simultaneously. just connect client first and after some delay try to login. there will be no error Cheeers |
Its not really a solution, its a workaround |
you can not login until client is not connected & client it will take some time to connect. |
Yes i know that, ive been doing that ever since i opened this issue, but you might still run into connection issues, if you have a poor network or slow device. |
yes, it will be an error in that case. because there is no way to detect whether a connection is established on not. |
Make the connect function Asynchronous so we can wait for it and then call the login function. |
Bug Category
SDK Version
telnyx_webrtc: latest
Describe the bug
No, it does not occur in the example app because the example does not log in right after you connect the client. I had this issue for a long time and the workaround I did to fix it was using a delay of 4 seconds to log in after you connect the client because the connect() method is not asynchronous, but in release the delay is not really working and users are not able to automatically login into the client.
Expected behaviour
A clear and concise description of what you expected to happen.
Logs
Please provide any logs available to you, remember to enable verbose logging within the SDK.
The text was updated successfully, but these errors were encountered: