Tawk.to with ionic

Can anyone guide how to use tawk.to in ionic apps

Actually they provide a script that needs to be pasted before
I added the script directly in the index.html before It worked but i dont want to show this this way. There should be a menu option like Chat with us and then User can initiate the chat.

Hello please help i need help

I added just the javascript part to the controller of specific template, it works on the web browser view, but fails to show up in emulator and actual mobile device

Did you remote debug the problem on the device already?
Follow these instructions here to debug the problem in Safari dev tools: https://ionic.zone/debug/remote-debug-your-app#ios
Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android
Look at the console and network tabs for errors.

@ajayv14 I am facing the same issue. Did you find a solution to this?

Same issue here! Works on web browser, but doesn’t show up in real device

@javierlopeza let us know if you find a solution

I really think this is a CORS issue, you may have to create a proxy

how to add script tawk
doesn’t show up in real device

already added it to the whitelist in config.xml?
https://cordova.apache.org/docs/en/7.x/guide/appdev/whitelist/index.html

how to do it

my code:
config.xml

  <access origin="*" />
    <access origin="http://*.tawk.to" />
    <access origin="https://*.tawk.to" />
    <access origin="http://tawk.to" />
    <access origin="https://tawk.to" />
    <access origin="https://*.jsdelivr.net" />
    <access origin="https://*.amazonaws.com" />
    <access origin="https://tawk.link" />

config.xml

    <plugin name="cordova-plugin-whitelist" spec="git+https://github.com/apache/cordova-plugin-whitelist.git" />

Hi,

Does anyone already resolved this? I am still on the process of integrating tawk API but when I tried to create an APK build tawk icon is not showing up. This is really frustrating :frowning: