[ 
https://issues.apache.org/jira/browse/CB-6104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jcesarmobile closed CB-6104.
----------------------------
    Resolution: Duplicate

closing as duplicate of https://issues.apache.org/jira/browse/CB-5149

> Online event triggers differently on iOS and Android
> ----------------------------------------------------
>
>                 Key: CB-6104
>                 URL: https://issues.apache.org/jira/browse/CB-6104
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-network-information
>    Affects Versions: 3.3.0
>         Environment: iOS, Android, using plugin version 0.2.7
>            Reporter: Kuan Yi Ming
>            Priority: Major
>
> As per the documentation on the online event in doc/index.md:
> bq. Applications typically should use document.addEventListener to attach an 
> event listener once the deviceready event fires.
> On iOS, the online event does not trigger when the event listener is added 
> once the deviceready event fires as it's already triggered.
> If the online event is added before the deviceready event fires (to get the 
> code to work on iOS), it fires the online event twice on Android: once before 
> the deviceready event fires, and once after.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to