UesleyCarossi opened a new issue #110:
URL: https://github.com/apache/cordova-plugin-network-information/issues/110


   # Bug Report
   
   ## Problem
   I need to run an event when connecting to wifi, but it ends up running at 
unexpected times.
   
   ### What is expected to happen?
   The expected is to occur only when connecting to the internet.
   
   
   ### What does actually happen?
   The onConnect subscription is firing when the application is opened, 
minimized> open, when connected to the internet.
   
   
   ## Information
   Open the application, minimize and open that the onConnect event will be 
triggered.
   
   
   
   ### Command or Code
   https://github.com/UesleyCarossi/test-network
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   
   
   ### Version information
   `Ionic:
   
      Ionic CLI                     : 5.4.1 
(C:\Users\****\AppData\Roaming\npm\node_modules\ionic)
      Ionic Framework               : @ionic/angular 5.1.1
      @angular-devkit/build-angular : 0.901.7
      @angular-devkit/schematics    : 9.1.7
      @angular/cli                  : 9.1.7
      @ionic/angular-toolkit        : 2.2.0
   
   Cordova:
   
      Cordova CLI       : 9.0.0 ([email protected])
      Cordova Platforms : android 8.0.0
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, 
cordova-plugin-ionic-webview 4.2.1, (and 5 other plugins)
   
   Utility:
   
      cordova-res : 0.6.0
      native-run  : 0.2.8
   
   System:
   
      Android SDK Tools : 26.1.1 (C:\Android\sdk)
      NodeJS            : v10.16.0 (C:\Program Files\nodejs\node.exe)
      npm               : 6.9.0
      OS                : Windows 10`
   
   **Plugins:**
   
   `cordova-plugin-device 2.0.2 "Device"
   cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
   cordova-plugin-ionic-webview 4.2.1 "cordova-plugin-ionic-webview"
   cordova-plugin-network-information 2.0.2 "Network Information"
   cordova-plugin-splashscreen 5.0.2 "Splashscreen"
   cordova-plugin-statusbar 2.4.2 "StatusBar"
   cordova-plugin-whitelist 1.3.3 "Whitelist"`
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to