cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shane (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CB-12884) Offline event not being triggered on android
Date Mon, 05 Jun 2017 19:46:04 GMT

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

Shane closed CB-12884.
----------------------
    Resolution: Resolved

This ended up being related to the platform not being 100% loaded when adding the events.

> Offline event not being triggered on android
> --------------------------------------------
>
>                 Key: CB-12884
>                 URL: https://issues.apache.org/jira/browse/CB-12884
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-network-information
>    Affects Versions: 7.0.1
>         Environment: Global packages:
>     @ionic/cli-utils : 1.0.0
>     Cordova CLI      : 7.0.1
>     Ionic CLI        : 3.0.0
> Local packages:
>     @ionic/app-scripts              : 1.3.7
>     @ionic/cli-plugin-cordova       : 1.3.0
>     @ionic/cli-plugin-ionic-angular : 1.3.0
>     Cordova Platforms               : android 6.1.2 ios 4.3.1
>     Ionic Framework                 : ionic-angular 3.2.1
> System:
>     Node       : v8.0.0
>     OS         : macOS Sierra
>            Reporter: Shane
>            Priority: Blocker
>              Labels: android, event, network, offline
>             Fix For: 7.0.1
>
>
> The "offline" event is working perfectly fine on ios and desktop, but it doesn't seem
to be working properly on android.
> Basically turning off the wifi doesn't trigger the "onOffline" event UNLESS the app is
initially started without an internet connection... at which point enabling and un-enabling
the wifi will trigger it.
> As you can likely tell from my environment, I'm using the plugin in an Ionic project.
I register the events on app startup.
> If you'd like any more information I'll be happy to provide it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message