Hi Team,
I am doing one application(phone gap+android) for that I have to check internet "online" or "offline" ,for the way I followed phone gap API documentation,but for getting response its taking long time(few minutes).
how can I get immediate response from online and offline events. Please give solution for this.
Please tell me solution for this.
please below my code:
function init() {
document.addEventListener("deviceready", onDeviceReady, true);
}
function onDeviceReady(){
document.addEventListener("online", onOnline, false);
document.addEventListener("offline", onOffline, false);
}
function onOnline() {
alert("yes-onOnline");
}
function onOffline() {
alert("yes-onOffline");
}
Thank you,
Siva.
I am doing one application(phone gap+android) for that I have to check internet "online" or "offline" ,for the way I followed phone gap API documentation,but for getting response its taking long time(few minutes).
how can I get immediate response from online and offline events. Please give solution for this.
Please tell me solution for this.
please below my code:
function init() {
document.addEventListener("deviceready", onDeviceReady, true);
}
function onDeviceReady(){
document.addEventListener("online", onOnline, false);
document.addEventListener("offline", onOffline, false);
}
function onOnline() {
alert("yes-onOnline");
}
function onOffline() {
alert("yes-onOffline");
}
Thank you,
Siva.



