How to test for connection of XData server

I have a phone app which connects to an Aurelius server.

The phone users are periodically off network.

At these times I would like my app to "fail gracefully"

I have added a cumbersome method (suggested on the internet) to try to make a connection to Google, and if this fails an application boolean variable InternetConnected is set = false.

However I wondered whether there is any better way to do this using any built in feature of Aurelius.

No, unfortunately there is no way to tell a server is down than simply connect to such server.

Probably the phone library itself has a better method to check if the internet connection is gone, but that's regardless of the server.

A question similar like this have been recently asked: Trap XData Server Unavailable - #5 by wlandgraf

Thank you Wagner.

I will look at how to check the connection at the level of the phone.

The link to the other thread was also really useful.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.