Check and fallback if web-app in server.url is not available? #7978
-
Hello all, I have my web-app running on a separate web server that is shown in Capacitor WebView using "server.url" in Capacitor config. The web-app interacts with Capacitor & Plugins using Javascript, which works very well so far! In the default implementation right now, in case there is no connection to server.url just an empty white screen is shown. What would be the best way on Capacitor app start to verify that the external server in server.url is available? In case the server or the device is offline it would be nice to show an error message in Capacitor (something like "We can not reach our services ... please check your network connection or contact support" or even "Retry ..")? Any help on how to implement this would be appreciated! Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
check |
Beta Was this translation helpful? Give feedback.
check
errorPath
configuration option https://capacitorjs.com/docs/config