[
https://issues.apache.org/jira/browse/CB-7787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Colin Bau updated CB-7787:
--------------------------
Description:
according to the two link
http://docs.phonegap.com/en/3.5.0/cordova_events_events.md.html#deviceready
https://github.com/apache/cordova-plugin-network-information/blob/df7aac845dc7deddbdb76e89216776a802ee8b67/doc/index.md
[wp issues]
the following command can't trigger in WP
document.addEventListener("pause", yourCallbackFunction, false);
document.addEventListener("resume", yourCallbackFunction, false);
document.addEventListener("offline", yourCallbackFunction, false);
document.addEventListener("online", yourCallbackFunction, false);
[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 four
times,if execute again (turn off and turn on again),it will trigger "online"
method but 4 times again
PS,iOS are all normal and all work
a issue in stackoverflow too !!!
http://stackoverflow.com/questions/23871626/phonegap-3-4-bug-with-event-online-offline
was:
according to the two link
http://docs.phonegap.com/en/3.5.0/cordova_events_events.md.html#deviceready
https://github.com/apache/cordova-plugin-network-information/blob/df7aac845dc7deddbdb76e89216776a802ee8b67/doc/index.md
[wp issues]
the following command can't trigger in WP
document.addEventListener("pause", yourCallbackFunction, false);
document.addEventListener("resume", yourCallbackFunction, false);
document.addEventListener("offline", yourCallbackFunction, false);
document.addEventListener("online", yourCallbackFunction, false);
[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 four
times,if execute again (turn off and turn on again),it will trigger "online"
method but 4 times again
PS,iOS are all normal and all work
> some issues with "event" method and "Network information" plugin
> ----------------------------------------------------------------
>
> Key: CB-7787
> URL: https://issues.apache.org/jira/browse/CB-7787
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Network Information
> Affects Versions: 3.6.3
> Environment: phonegap 3.6.3 with all latest plugin
> ios 8.02
> winphone 8.1
> Android 4.42
> all real machine
> Reporter: Colin Bau
> Labels: event
> Original Estimate: 12h
> Remaining Estimate: 12h
>
> according to the two link
> http://docs.phonegap.com/en/3.5.0/cordova_events_events.md.html#deviceready
> https://github.com/apache/cordova-plugin-network-information/blob/df7aac845dc7deddbdb76e89216776a802ee8b67/doc/index.md
> [wp issues]
> the following command can't trigger in WP
> document.addEventListener("pause", yourCallbackFunction, false);
> document.addEventListener("resume", yourCallbackFunction, false);
> document.addEventListener("offline", yourCallbackFunction, false);
> document.addEventListener("online", yourCallbackFunction, false);
> [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
> four times,if execute again (turn off and turn on again),it will trigger
> "online" method but 4 times again
> PS,iOS are all normal and all work
> a issue in stackoverflow too !!!
> http://stackoverflow.com/questions/23871626/phonegap-3-4-bug-with-event-online-offline
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]