You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2016/10/22 22:02:58 UTC

[jira] [Commented] (CB-5149) iOS first run online/offline events broken

    [ https://issues.apache.org/jira/browse/CB-5149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15598568#comment-15598568 ] 

jcesarmobile commented on CB-5149:
----------------------------------

Current status:

On iOS 9.3.5, 
if the event listener is attached after device ready, online won't work, offline will work
if the event listener is attached before device ready, both work

By work I mean they get called when you launch the app, once the app is running both ways detect the changes.

It seems that the changes on CB-2291 were lost when changing from website docs to plugin docs

[~shazron], should we close this one and reopen CB-2291?


> iOS first run online/offline events broken
> ------------------------------------------
>
>                 Key: CB-5149
>                 URL: https://issues.apache.org/jira/browse/CB-5149
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Network Information
>    Affects Versions: 3.1.0
>         Environment: iOS 6 and 7
>            Reporter: Kuan Yi Ming
>              Labels: core
>
> The code samples at http://cordova.apache.org/docs/en/3.1.0/cordova_events_events.md.html#online do not longer work. Same with offline.
> When the app is first launched using PhoneGap 2.2 to 2.9, the online or offline event (where applicable) triggers before the deviceready event. In 3.1.0, this no longer happens on iOS... the event only fires when the user maually turns on or off data in the settings.
> This still works normally on Android, so this might be an iOS issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org