You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/08/22 11:01:12 UTC

[GitHub] candemore1024 opened a new issue #66: Connection reported as Connection.NONE

candemore1024 opened a new issue #66: Connection reported as Connection.NONE
URL: https://github.com/apache/cordova-plugin-network-information/issues/66
 
 
   This plugin worked very well, but this month I've several reports of iOS users with “Connection.NONE” when they are confirming that they have connection to internet (wifi or another type). I don't know where is the specific trigger of this issue, so I'm not able to reproduce it (yet).
   
   My code is:
   
   var networkState = navigator.connection.type;
   if (networkState == Connection.NONE) {
   // alert the user using a dialog (navigator.notification.confirm)
   }
   
   This code worked perfect in the past.
   
   Environment: Cordova 6.0.0 / Cordova iOS 4.1.1 / Plugin version: 1.3.0
   
   If "Connection.NONE", my app presents a native dialog with the message "No Internet connection found" and after tap the "OK" button, checks again the connection. Users confirming that they have connection to internet. After the second checking, same issue, "Connection.NONE" and the dialog appears again, entering in a loop. 
   
   In my own device (Iphone 6 plus), using iOS 11.0, I saw the same issue several times, with the difference that in the second checking, the plugin worked fine.
   
   I asked one user (Iphone 8 plus, iOS 11.4.1), to turn off / on the Iphone and it seems that the problem dissapears, after some time appears again. I asked now to activate/deactivate the flight mode, expecting reply.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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