zoho / SalesIQ-Mobilisten-iOS

Your mobile app's ideal live chat partner. Power up your iOS App with the SalesIQ Mobilisten iOS SDK.
https://mobilisten.io
11 stars 4 forks source link

Issue: Getting crash while open the chat with chat.show() #34

Open DhavalUmraliya opened 5 days ago

DhavalUmraliya commented 5 days ago

Describe the bug Im trying to open chat window from single ton class. sometime its working some time its crash.

To Reproduce I have one common function to open chat window. when i open chat window from profile its working and then open that window from another screen then its crashed

Expected behavior it should not crashed, if there is an error then should be print logs.

Screenshots Added Screen shot

Smartphone (please complete the following information):

HERE IS THE CODE

class ChatbotManager:NSObject, ZohoSalesIQDelegate, ZohoSalesIQChatDelegate, ZohoSalesIQFAQDelegate {

static let shared = ChatbotManager()

func openChatWindow(){
    let customTheme = ZohoSalesIQ.Theme.baseTheme
    customTheme.Navigation.backgroundColor = UIColor.F03457
    customTheme.Navigation.titleColor = UIColor.FCFCFD
    customTheme.Navigation.tintColor  = UIColor.FCFCFD
    customTheme.themeColor =  UIColor.F03457
    ZohoSalesIQ.Chat.setLanguage(.english)
    ZohoSalesIQ.Chat.setTitle("Help Chat")
    ZohoSalesIQ.Theme.setTheme(theme: customTheme)
    ZohoSalesIQ.Chat.showOfflineMessage(true)

    ZohoSalesIQ.Chat.delegate = self
    DispatchQueue.main.async {
          ZohoSalesIQ.Chat.show()
      }

    ZohoSalesIQ.logProperties()
}

}

Screenshot 2024-10-14 at 7 40 47 PM
venkatesh-ramesh-12517 commented 3 days ago

Hi @DhavalUmraliya

Thank you for pointing this out. We are already working to resolve this issue. I will keep you posted regarding updates.

In the meantime, if you have any other queries, please contact our customer support team at support@zohosalesiq.com.

Best regards, Venkatesh