Azure / Communication

Azure Communication Services - SDKs and Release Notes
MIT License
320 stars 99 forks source link

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

Open AmyL219 opened 3 years ago

AmyL219 commented 3 years ago

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 commented 3 years ago

https://skype.visualstudio.com/SPOOL/_sprints/taskboard/ACS%20Mobile%20UI/SPOOL/CY2021-Q3/Sprint%2045%20(Ends%20September%2019)?workitem=2569670

AmyL219 commented 3 years ago

Log file: No Internet State.xcappdata.zip

jimchou-dev commented 2 years ago

Issue still persist 2.1.0-beta.1