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.
[ Full content available at:
https://github.com/apache/cordova-plugin-network-information/issues/66 ]
This message was relayed via gitbox.apache.org for [email protected]