javascript - Check online or offline? -
what easiest way trigger function when device becomes online or offline android webview.i found one.
window.addeventlistener('online', update onlinestatus);
but not working in android webview
do whatever want in callback there alert when connection lost
document.addeventlistener("offline", function(){ alert("no connection found") }, false);
Comments
Post a Comment