Agent Desktop

Get Involved. Join the Conversation.

Topic

    chidambaram CT
    Chat disconnected in IOS deviceAnswered
    Topic posted February 21, 2019 by chidambaram CTBronze Trophy: 5,000+ Points 
    28 Views, 1 Comment
    Title:
    Chat disconnected in IOS device
    Summary:
    Chat disconnected in IOS device
    Content:

    We have chat related issue in IOS device. Chat launch page contains customized persistent chat widget . After commencing the chat conversation, when we switch to different application and come back immediately to chat page, chat disconnected. (i.e) Message send by agent from console not received at the customer end,but message send from customer received by the agent.

    What could be the issue? This is occurring only in IOS device

    Best Comment

    chidambaram CT
    For the benefits of others, I will provide solution for this.
     
    var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
    if(iOS){
     var lastFired = new Date().getTime();
    setInterval(function() {
    now = new Date().getTime();
        if(now - lastFired > 2000) {//if it's been more than 5 seconds
         thisVar.onChatLoad();
        }
        lastFired = now;
    }, 500);
    }

    Comment

     

    • chidambaram CT
      For the benefits of others, I will provide solution for this.
       
      var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
      if(iOS){
       var lastFired = new Date().getTime();
      setInterval(function() {
      now = new Date().getTime();
          if(now - lastFired > 2000) {//if it's been more than 5 seconds
           thisVar.onChatLoad();
          }
          lastFired = now;
      }, 500);
      }