[android issues] (trigger twice or more times)
document.addEventListener("offline", yourCallbackFunction, false);
document.addEventListener("online", yourCallbackFunction, false);
trust me...just try these step...
turn off your network，it will trigger the "offline" method and only once time，good !!
but after it，turn on your network，it will trigger the "online" method but two times，if execute again (turn off and turn on again)，it will trigger "online" method but two or more times
a issue exist in stackoverflow too !!! (although I am already use the phonegp 3.7.1)