OutSystemsUI have a plugin to verify network status but this plugin can't verify if the smartphone is really connected with internet access, what i need is that, i need verify if the phone are with network and internet.
A example, if i'm connected in my wifi but this wifi don't have internet, this plugin returns true to the connection and that doesn't help the sync because the app will not connect with the server and the sync action will run until the timeout.
Hi Bruno,
You can use JavaScript to get information about your network signal strength using the network information API. Take a look at some examples:
In the link shared above you will find more information about the different attributes but for instance, rtt is the estimated effective round-trip time of the current connection, rounded to the nearest multiple of 25 milliseconds.
Kind Regards,João
Hi João,
I tried this but not work, with or without internet access this function returns 200 in rtt and "4g" in connection with cable.
Hello Bruno,
Have you tried below components to check if the device is offline?
https://www.outsystems.com/forge/component-overview/3303/offlinedetection
https://www.outsystems.com/forge/component-overview/2047/network-connection-information
Also for more details you can visit the below forum post:
https://www.outsystems.com/forums/discussion/56001/outsystems-ui-network-status-detection/
Hope this helps :)