Communication icon indicating copy to clipboard operation
Communication copied to clipboard

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

Open AmyL219 opened this issue 3 years ago • 3 comments

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 avatar Sep 02 '21 22:09 AmyL219

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

AmyL219 avatar Sep 13 '21 23:09 AmyL219

Log file: No Internet State.xcappdata.zip

AmyL219 avatar Sep 14 '21 19:09 AmyL219

Issue still persist 2.1.0-beta.1

jimchou-dev avatar Nov 18 '21 20:11 jimchou-dev