I am exploring using a web viewer as the primary element of an app but want to be able to use some native functionality that Thunkable exposes. I have come across this in order to achieve 2 way comms between the WV and Thunkable:
That seems great and the demo projects work well. My questions are:
If I wanted to take a photo in the native app, would I be able to pass that as the ‘message’ to the web view page ? If so, how ?
Same comment goes for a video
Any other constraints or considerations I should be aware of at all ?
I am also exploring having local html files but I believe there is (still valid ?) an issue with not being able to load assets locally ? (see below):
You need to specify what you mean by take a photo or video?
Are you saving it to Cloudinary for example? If yes, then you will have a URL link to the saved photo/video which you need to pass to your HTML page.
The Web Viewer is an iframe HTML element and therefore all considerations and constrains of iframe will hold true for the Web Viewer component. A major constraint is that some sites, for security reasons, does not allow executing their pages from iframe element which is referred to as CORS policy.