android icon indicating copy to clipboard operation
android copied to clipboard

Make reconnect timer customizable

Open ProductiveAsparagus56 opened this issue 1 year ago • 8 comments

Hi, I would like to change the amount of time the application waits to reconnect to the server. Currently it waits 60 seconds and then increments. Personally I would like the app to try to reconnect every 10 seconds without incrementing, I can see that's overkill for most people, so I'm asking for this timer to be made customizable.

ProductiveAsparagus56 avatar Aug 18 '24 17:08 ProductiveAsparagus56

What's your use-case for this?

jmattheis avatar Aug 18 '24 19:08 jmattheis

I want to get notifications to my phone with less downtime than the preconfigured settings. If that doesn't answer your question, could you be more specific?

ProductiveAsparagus56 avatar Aug 18 '24 19:08 ProductiveAsparagus56

Nah good enough. Was asking because maybe there was some kind of scenario where you always have disconnections and it'd be noticeable that there is some delay when reconnecting.

jmattheis avatar Aug 18 '24 19:08 jmattheis

Hi, I think it would also be a good idea to reopen the websocket immediately when a manual refresh is triggered. I added this here as I felt it was related.

ProductiveAsparagus56 avatar Aug 25 '24 00:08 ProductiveAsparagus56

There is a full refresh button in the navigation drawer, this one forces a reconnect of the websocket.

jmattheis avatar Aug 25 '24 08:08 jmattheis

for me a use case for this is that i have gotify hosted on a machine that i need to turn off every once in a while for quite a long time (likely 1 to 2 hours). i don't want every user to keep reconnecting every few minutes while that's happening

TNTzx avatar Oct 23 '24 18:10 TNTzx

A configuration for this would be great as I'm sometimes on unstable 4G connection which can sporadically disconnect, which causes Gotify to wait for >3 minutes. Since frequent requests aren't an issue for me, I'd like to try to reconnect more aggressively, something like 1s interval with each retry doubling the time. Opening the app and refreshing is the only fast and reliable option for now.

alexitx avatar Nov 01 '24 12:11 alexitx

+1

ghost avatar Apr 16 '25 07:04 ghost