server icon indicating copy to clipboard operation
server copied to clipboard

Android app retry interval not configurable

Open JPMakesStuff opened this issue 1 year ago • 3 comments

Seems the Android app does not do a very good job flushing DNS of the currently connected server, or does not do a very good job retrying the connection to the server when switching between WiFi to WiFi or WiFi to Cellular networks.

Sometimes have to force quit the app to get it to find the server after network re-connection, waiting minutes to then get delayed messages after whatever the automatic re-connection period is seems to defeat the whole purpose.

Would like the ability to set retry intervals for both WiFi and Cellular connections.

JPMakesStuff avatar Jan 15 '25 07:01 JPMakesStuff

The app should automatically try when a network gets available. Could you post the gotify/android logs when you'd expect an automatic reconnect but it doesn't happen?

The dns caching likely uses the ttl of the dns entry, do you have a low ttl for the domain you use? The interval configuration seems like duplicate of #287.

jmattheis avatar Jan 15 '25 20:01 jmattheis

I have tried a very low TTL, I have also tried it via IP directly.

Example for testing... set android client to use private LAN IP go off wifi, cellular only, obviously LAN IP wont be reachable go about your day, client complains of not reachable go home, join wifi, client says server still not reachable, must force quit app and load again for it to find server

JPMakesStuff avatar Jan 31 '25 15:01 JPMakesStuff

Does the normal refresh (in the navigation drawer) work to fix the issue when it appears?

jmattheis avatar Jan 31 '25 17:01 jmattheis