I’ve been using Wordpress as an easy backend for my app and integrated the site to my app via the web viewer. I’ve used the following kind of script structure to simply send messages from my site to the app via the web viewer:
And then on the Thunkable/app side, I’ve utilized the following block structure to receive the message:
And it has worked well.
I’d be really happy if you could help me out here. Thank you!
Maybe @jared @muneer or some others might know?
ThunkableWebviewerExtension.postMessage() and provide whatever information you want to pass to the app in this function.
I have lots of experience but none with Wordpress. Is there a way in WordPress to identify when a message has been posted to an iFrame or to any other element?
Thanks for the reply @jared – although I have no clue whether this can be done.
The benefit of this would be that when I let the user view my web page on the web viewer, and the user is logged in on the site and interacting there, I could then inform my app that a particular user is now browsing the site, which would then allow me to customize things better on the app side.
WordPress is a solution but not very much the ideal one for the Thunkable code.
You see, Thunkable requires that you first add the their script in the
HEAD tag of the HTML page and then use your own script in the end of the
BODY tag to be able to detect actions within the page.
You will need to install the Header Footer PLUGIN of
WordPress and then in the plugin use the header part to include
Then use the footer part of the plugin to paste your script.
Thank you! I’ll try this out & tinker with the examples, and see how far I can get.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.