Handle errors during redirection and page load for Hosted web apps

Hello,

We have a hosted web app for webOS, and within our index.html file, we have implemented a redirection to open our website. We would like to know:

  1. Is there a way to handle or listen to DNS failures or other runtime issues (like TCP connection issues) that occur during the redirection process in a webOS hosted app?
  2. Additionally, is it possible to customize the network error screens that the TV displays when such issues (like DNS or network errors) occur for our app?

Thank you in advance for your assistance!

It’s not much different from general web app development. You can/should check HTTP response status codes from your server. Thank you.

We want to handle the errors that happen during the re-direction, not after the redirection. Is there any way to do this? Thanks!

There is currently no API provided for this. Instead, you can use Connection Manager API to get the current status of network connections. And as mentioned above, it’s not much different from general web app development, so you can find more information on Google. Thank you.