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

[iOS AzureCommunicationCalling 1.0.1] The callClient.createCallAgent block main thread if the network is poor or not connected #368

Open
AmyL219 opened this issue Sep 2, 2021 · 3 comments
Labels
Bug Something isn't working Needs: triage 🔍

Comments

@AmyL219
Copy link

AmyL219 commented Sep 2, 2021

Describe the bug
Call the function blow when there is no Internet connection, there wouldn't have any call back and block the whole main thread if I make the call inside DispatchQueue.main.async

callClient?.createCallAgent(userCredential: tokenCredential, options: options) { [weak self] (agent, error) in
}

To Reproduce
Steps to reproduce the behavior:

  1. Close the internet connection in your device
  2. Try to create connection with callClient?.createCallAgent
  3. There wouldn't have any callback to indicate the connection is failed

Expected behavior
There should have a callBack with an error indicate the connection failed.

Screenshots
If applicable, add screenshots to help explain your problem.

Log file:
No Internet State.xcappdata.zip

@AmyL219 AmyL219 added the Bug Something isn't working label Sep 2, 2021
@ghost ghost added the Needs: triage 🔍 label Sep 2, 2021
@AmyL219 AmyL219 changed the title [iOS AzureCommunicationCalling 1.0.1] The callClient.createCallAgent wouldn't have any callback if the network is poor or not connected [iOS AzureCommunicationCalling 1.0.1] The callClient.createCallAgent block main thread if the network is poor or not connected Sep 3, 2021
@AmyL219
Copy link
Author

AmyL219 commented Sep 14, 2021

Log file:
No Internet State.xcappdata.zip

@jimchou-dev
Copy link
Member

Issue still persist 2.1.0-beta.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs: triage 🔍
Projects
None yet
Development

No branches or pull requests

2 participants