You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kuan Yi Ming (JIRA)" <ji...@apache.org> on 2014/02/25 17:22:19 UTC
[jira] [Created] (CB-6104) Online event triggers differently on iOS
and Android
Kuan Yi Ming created CB-6104:
--------------------------------
Summary: 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: Plugin Network Information
Affects Versions: 3.3.0
Environment: iOS, Android, using plugin version 0.2.7
Reporter: Kuan Yi Ming
As per the documentation:
> 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
(v6.1.5#6160)