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


   # Bug Report
   network.type is not set 'wifi' even when iPad Air is set to flight modus or 
when I am turning off WiFi
   ## Problem
   network.type is set to 'wifi' even when iPad Air is set to flight modus or 
when I am turning off WiFi
   ### What is expected to happen?
   network.type should be 'none' when iPad Air is set to flight modus or when I 
am turning off WiFi
   
   
   ### What does actually happen?
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   let online: boolean = window['cordova' as string] ? this.network.type !== 
'none' : navigator.onLine !== false;
   console.log(this.network.type); // prints 'wifi' even when device is off 
network
       if (online === false) {
         // show a toastMessage device has no internet connection
       }
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   iPad Air v12.5.5 PHYSICAL DEVICE (not emulator)
   
   
   ### Version information
   Ionic:
   
      Ionic CLI                     : 5.4.16
      Ionic Framework               : @ionic/angular 5.5.5
      @angular-devkit/build-angular : 0.1000.8
      @angular-devkit/schematics    : 10.0.5
      @angular/cli                  : 10.2.3
      @ionic/angular-toolkit        : 2.3.3
   
   Capacitor:
   
      Capacitor CLI   : not installed
      @capacitor/core : not installed
   
   Cordova:
   
      Cordova CLI       : 9.0.0 ([email protected])
      Cordova Platforms : android 9.1.0, ios 6.2.0
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, 
cordova-plugin-ionic-webview 5.0.0, (and 17 other plugins)
   
   Utility:
   
      cordova-res (update available: 0.15.3) : 0.14.0
      native-run                             : 1.5.0
   
   System:
   
      Android SDK Tools : 26.1.1 (/Users/a.karavasili/Library/Android/sdk)
      ios-deploy        : 1.10.0
      ios-sim           : 8.0.2
      NodeJS            : v10.19.0 
(/Users/a.karavasili/.nvm/versions/node/v10.19.0/bin/node)
      npm               : 6.13.4
      OS                : macOS Monterey
      Xcode             : Xcode 12.4 Build version 12D4e
   
       "@ionic-native/network": "^5.36.0"
       "cordova-plugin-network-information": "^3.0.0"
   
   
   ## 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.

To unsubscribe, e-mail: [email protected]

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