How to check page availability before loading in webviwer


I want to know how to check online page availability before loading it in the webviwer.

I need to set the webviwer visibility to to true only when the device is online and page is available.

I am able to do all the other requirements but checking page availability.

Page availability means response (200) http, or other supported feature in thunkable platform.

Thanks in advance

I’m not sure how reliable this method is but if you set a Web API’s url to the website address and do a Get command, the green [error] block will contain “Network request failed”. So you can check for that to tell you if the page is unavailable. I guess you could also check the value of the green [status] block.

1 Like

Thanks for your suggestion, I will try this and get back to you with the results

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.