222
Views
3
Comments
How verify internet connection?
Application Type
Mobile
Service Studio Version
11.53.34 (Build 61795)
Platform Version
11.18.1 (Build 37905)

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.

2018-10-29 08-31-03
João Marques
 
MVP

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

UserImage.jpg
Bruno Carvalho

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.

2022-12-09 04-50-17
Shubham Doshi
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.