Check for internet connection

Is there any way to know from the app if there is an internet connection available?

You can use the system variables → “networkStatus”

image

Here is the link to the docs:

3 Likes

My friend, very grateful for your help.

Really thanks!

Actually this isn´t a solid solution. A phone will report it has a wifi connection even if if the router its connected to has no internet. A more solid solution is to try to open a file on firestore etc, then use the error messages from that to determine network status. If you know the size of the file you can also use this to decide you have a “poor” connection.

3 Likes

This seems the best and wisest solution to me. As we are retrieving the data anyway, there is no need to add even more bloat to the app. Now I just have to figure out if appgyver will return a consistent error message when the phone does not have internet.