QuickBlox / quickblox-ios-sdk

QuickBlox iOS SDK for messaging and video calling
https://quickblox.com/developers/IOS
MIT License
397 stars 358 forks source link

RTC Uninitialized when trying to make a call #1239

Closed maughray closed 3 years ago

maughray commented 3 years ago

Hi,

When my application enter foreground and immediately try to make a call by calling QBRTCClient.instance().createNewSession, result is nil with error RTC uninitialized. Before that, I am calling QBChat.instance.connect and QBRTCClient.initializeRTC, but it seems that they are still connecting when I am trying to make a call. Is there a method to know connection state of QBChat and RTC? Does QBRTCClient have a connection completion? Do I need to call QBRTCClient.initializeRTC every time when I am trying to make a call? because I call this method on app launch, but anyway I am getting uninitialized RTC error.

Thanks.