Closed JackWormUK closed 2 years ago
Hi! Seems that the issue has been resolved, I'll close this ticket and mark it as done. If there are other issues encountered, please feel free to open a new ticket or contact the tawk.to support team live chat 24x7.
Hi Guys
We have set the tawk.to widget to not display on mobile. On Magento 2.4.3 Desktop, everything is fine, however we get a 400 error if we use mobile (which then breaks other things such as lazy load images etc).
Luckily this can be recreated in Google Chrome by selecting a mobile display size in the developer mode
twk-chunk-common.js:1 POST https://va.tawk.to/v1/session/start 400
Payload
{p: "532bh234jhbv3b 24jh23", w: "default", platform: "mobile", tzo: -480,…} consent: false p: "532bh234jhbv3b 24jh23" platform: "mobile" referrer: "https://mywebsite.com/thepage.html" tzo: -480 u: "uhgfigiushfgkhfskgh89rwe-8uasioypOUHahf" url: "https://mywebsite.com/thepage.html" uv: 3 vss: "vsb16.tawk.to" w: "default" wss: "min"
Response
{"ok":false,"error":{"code":"BadRequestError","message":""}}
Ok, i have figured it out. It seems to do with the system getting confused with conflicting settings in the admin panel on the tawk.to website
Setting -> Chat Widget -> Visibility Settings and Settings -> Chat Widget -> Platform Restrictions
Rather than restricting the widget to not display in the Platform Restrictions and leaving it visible in Visibility Settings I have set the platform restriction to show on both and set the Visibility Setting to hide on mobile and now the error is gone