Replies: 1 comment 1 reply
-
The behaviour you are seeing sounds correct to me. The Network plugin will ask iOS for its network status, and iOS will give it. This is a completely separate question as to whether or not the Internet is accessible via that network. For example, I can be connected to my home WiFi (for example) and my ISP could be down. I am still connected to my home WiFi, however, so iOS will (correctly) report that I am connected via WiFi, because I am. Whether or not the Internet is available via that network connection is a completely different question. For that matter, the Internet could be there and 100% accessible, but your server that you will try to refresh your JWT with could be unavailable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Im at a loss here and I'm not sure if this is a bug or what!
I need to check if the device is online / offline so I installed the capacitorjs network package.
However, it appears on iOS (unable to test/confirm on Android) that a VPN connection is being/returning as Connected = True and of Type WiFi
This is leading to issues because there isnt a internet connection for the VPN. I need to ensure the JWT isnt refreshed while offline but due to this it is attempting to refresh and unable too leading to user being logged out.
Beta Was this translation helpful? Give feedback.
All reactions