• Resolved aaronfrazier

    (@aaronfrazier)


    Trying to implement tidio chat with a different button. It is working with a few problems. Here is the script i used. I added the touchstart to make it work on a mobile as click click event didnt work on mobile.

    (function() {
    function onTidioChatApiReady() {
    window.tidioChatApi.hide();
    window.tidioChatApi.on("close", function() {
    window.tidioChatApi.hide();
    });
    }
    if (window.tidioChatApi) {
    window.tidioChatApi.on("ready", onTidioChatApiReady);
    } else {
    document.addEventListener("tidioChat-ready", onTidioChatApiReady);
    }
    document.querySelector(".fm-item-2-4").addEventListener("click", function() {
    window.tidioChatApi.show();
    window.tidioChatApi.open();
    });
    document.querySelector(".fm-item-2-4").addEventListener("touchstart", function() {
    window.tidioChatApi.show();
    window.tidioChatApi.open();
    });
    })();

    Issue 1 – On mobile it functions great, opens etc. If you swipe left or right to close the chat, the browser is not scrollable and kind of frozen. Links still are clickable on the page but can not scroll. If you click close on the chat, all works as expected.

    Issue 2 – works as expected on desktop on any non woocommerce pages. On woocommerce pages it opens then quickly closes.

    Any suggestions? im not good with javascipt so maybe I have an issue there

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter aaronfrazier

    (@aaronfrazier)

    Issue 2 is a problem with the yith ajax filters so I can work around that by not using it I suppose if need be and just use the regular wordpress filters.

    Plugin Support kamiltidio

    (@kamiltidio)

    Hi there!
    My name is Kamil, I’m from the Tidio technical support, and I’ll gladly help you with your inquiry ??
    It sounds like some hashing issues – could you please try adding this code to your page and let me know if it changed anything?

    <script>
      (function() {
        function onTidioChatApiReady() {
          window.tidioChatApi.setFeatures({ mobileHash: false });
        }
        
        
        if (window.tidioChatApi) {
          window.tidioChatApi.on('ready', onTidioChatApiReady)
        } else {
          document.addEventListener('tidioChat-ready', onTidioChatApiReady);
        }
      })();
    </script>

    I’ll be looking forward to your reply!

    Thread Starter aaronfrazier

    (@aaronfrazier)

    That kind of works now on mobile. With the chat open swiping now not only closes it but goes back, which in my case brought me to the last website I had visited. I deally, atleast in my mind, swiping would simply close the chat

    Thread Starter aaronfrazier

    (@aaronfrazier)

    Actually I lied! Swiping closes the chat and goes back. But now hitting the close button gives the same result of frozen scroll as before with swiping. So that just flipped which part is having the issue.

    Plugin Support kamiltidio

    (@kamiltidio)

    Hey, thank you for writing back.

    It seems that there might be some issues with how your website interacts with Tidio and the custom codes we prepared. As troubleshooting would require more information, would you be able to drop us an email at [email protected]?

    Please mention in the email to escalate the case to the 2nd level team ??
    I appreciate considering my request!

    Thread Starter aaronfrazier

    (@aaronfrazier)

    Ok, email sent. This appears to be a very similar issue to this, Issue with back event on mobile | www.ads-software.com, only that the fix doesn’t really fix it, only give a different goofy result with having to go back to unlock the screen. Closing doesn’t seem to fully close even though it looks like it is.

    Thread Starter aaronfrazier

    (@aaronfrazier)

    Just so this isn’t a dead thread that people are wondering about the fix, there isn’t one. Tidio seems to be aware of the issue for sometime. Priority for a fix they say is low. It appears on all devices I have tried with, both android and ios. Using your own button doesn’t really seem to be an option contrary to what their website kind if makes you believe.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘opening with button’ is closed to new replies.