Issues using local HTML - web viewer does not post/receive messages or load html

I put the webviewer in visible at a normal size it displays all pages correctly but if I put a hosted page for example index.html with this code

<html><head>
<script src="https://thunkable.github.io/webviewer-extension/thunkableWebviewerExtension.js" type="text/javascript"></script>
<script type="text/javascript">
// when we get a message from the app, display it on the page
ThunkableWebviewerExtension.receiveMessage(function(message) {
 document.body.innerHTML = message;
});
</script>
<title>Facture</title>
</head>
<body>
</body>
</html>

when I send the message via thunkable nothing happens I have a blank page yet before the updates all worked perfectly, so the perfect example is this post

Create Invoice (Display on Thunkable live,Send by email with pdf attachment) - Thunkable Tutorials - Community

1 Like