Hi, 

I would like to know if there's a way to know if I'm connected in wifi or 4G/5G on mobile ?


Regards,

Matheus.

Solution

Hi,

I believe this will help you:

https://www.outsystems.com/forge/component-overview/2047/network-connection-information

Best regards,

Nuno Verdasca

Solution

Matheus,

The GetNetworkStatus() returns true if the device is connected to any network (Wi-fi, 3G, 4G, etc).
It does not check if there is actually internet connectivity.

One solution for you to check for internet connectivity is to use offline.js, or a similar library.

If you need more information from the device network, we are using the cordova network information plugin.

Cheers,

Nuno Verdasca