livechat / chat-window-ios

Embeding LiveChat mobile chat window in iOS application
MIT License
24 stars 31 forks source link

Chat window not opening #71

Closed birk-bre closed 4 years ago

birk-bre commented 4 years ago

When calling LiveChat.presentChat() nothing happens in the app but sometimes i get a notification on my phone saying "Customer is browsing your site" thorugh the LiveChat app. So i guess the chat is actually working but the view is just not showing up.

Inside AppDelegate:

LiveChat.licenseId = License.Number
LiveChat.name = "Name"
LiveChat.email = "email@email.com"
LiveChat.groupId = "0"
LiveChat.delegate = self

I then call .presentChat() from a tableView delegate function

func tableView(_: UITableView, didSelectRowAt indexPath: IndexPath) {
        if optionsView.messages[indexPath.row] == "Need help?" {
            LiveChat.presentChat()
        }
    }