android icon indicating copy to clipboard operation
android copied to clipboard

Receive notifications after restored connection

Open ghost opened this issue 3 years ago • 1 comments

Even if you have cellular data and wifi turned on all the time, sometimes you can just lose coverage. And if there is a new message in that timespan, you are out of luck. Gotify doesn't check for new messages automatically when internet connection is restored, and so a notification is not sent straight away. Can this be somehow fixed?

ghost avatar Jul 25 '22 11:07 ghost

The android apps should notify missed messages after the connection could reestablish.

https://github.com/gotify/android/blob/7fd8ee06e1d3ccbc1d94cc59594a0f64dc887c82/app/src/main/java/com/github/gotify/service/WebSocketService.java#L118

There is one edge-case where the missed messages won't be displayed: The web socket connection could be established, but then the following get-messages HTTP call wasn't successful.

jmattheis avatar Jul 25 '22 18:07 jmattheis