Display content when no internet connection


#1
  • Cocoon Version:
    Latest (as of 11/19/18)

  • Basic description of the problem:
    Is there a way to have a warning page that is shown when a network connection isn’t available? I am looking for something to prevent a blank white page at startup.

  • Device info:
    Nexus 5, Android 6.0.1

  • Webview engine(s):
    Webview standard

  • Used plugins (if relevant):
    Defaults from making a new project


#2

Hi,
you can use the “network information” cordova plugin to check the connection state.
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-network-information/

Best,
Andy