Context:
SendBirdSDK’, ‘= 3.1.2’
iPhone 12 mini, iOS 15 (also reproduced on simulator and other models of iPhones)
application: SendBird UIKit demo app (checked out from GitHub repo), but also reproduced in our production application
Steps:
- Predefine appId and access token in codebase
- Launch UIKit demo application
- Enter user id and nickname
- Go to settings and enable “100% loss” mode in network link conditioner
- Get back to UIKit demo application, tap Sign In (trigger SBDMain.connect(withUserId userId: String, accessToken: String?, completionHandler: ((SBDUser?, SBDError?) → Void))
- In few seconds enable airplane mode on the device
- Observe console in Xcode
Result:
Completion block of the connect method is called a lot of times, this leads to many error logs in console. Full console output.
We observe same behavior in our application with integrated SendBird SDK