Problem Sending Message from Web Viewer (github project)

Hello everyone,

I need some help with the Web Viewer message sending feature. I created a project on github that detects the user’s phone language. The github project itself works perfectly. and i also put this in my code: ThunkableWebviewerExtension.postMessage(‘hello world’); as told.

However, when I place the github project URL inside a Thunkable Web Viewer and use the “when Web Viewer receives message → set variable to message” block, it never receives anything the variable never changes.

I don’t understand why the message isn’t being sent from the webpage, even though it works fine on github.

Thank you very much for your help!

Here is the link of my project :gh