Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Resolved
-
7.0.1
-
Global packages:
@ionic/cli-utils : 1.0.0
Cordova CLI : 7.0.1
Ionic CLI : 3.0.0Local 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.1System:
Node : v8.0.0
OS : macOS SierraGlobal 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
Description
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.