javascript - My app alert "app has stopped" if is started without internet connection -



javascript - My app alert "app has stopped" if is started without internet connection -

i developing app using phonegap , network-information plugin check if app connected net pull info internet. works fine if start app conencted internet, if start app without net connection alerts "droog(name of app)" has stopped. have no thought how can debug or trace error.

js portion:

if((navigator.connection.type).touppercase() != "none" && (navigator.connection.type).touppercase() != "unknown") { // check updates every time app initialize this.verificarfechas(); // if device offline , online document.addeventlistener('online', this.verificarfechas, false); }else{ alert('esta aplicación funciona mejor conectada internet. porfavor revisa tu conexión.'); }

config.xml:

<feature name="networkstatus"> <param name="android-package" value="org.apache.cordova.networkinformation.networkmanager"/> </feature>

let me know if need more info.

javascript jquery-mobile cordova phonegap-plugins

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -