owntracks / android

OwnTracks Android App
http://owntracks.org
Eclipse Public License 1.0
1.39k stars 476 forks source link

java.net.UnknownHostException #1917

Open ajpanton opened 2 days ago

ajpanton commented 2 days ago

Was just on a flight, and set my phone on airplane mode. Owntrack's notification complained about a "java.net.UnknownHostException: Unable to resolve host [url]...". A bit unnecessary, don't you think? More reasonable would be "No connection". If both mobile and wifi is down, either by flight mode or going into a cave or something, the app should know the reason it's unable to resolve the host.

The same message appears if the server only accepts a local connection and you're outside the local LAN (or the server happens to be offline). What about a "Server unreachable"?

I feel like error messages like "java.net.UnknownHostException" belong elsewhere, like the Status page in the app. You can already view the logs there.

growse commented 18 hours ago

Definitely room to improve the UX here.