mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #100] Android: lost connection after a server restart with HTTP/JSON #81
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MatMaul on GitHub (Jan 17, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/100
When restarting the server, my Android phone is silently loosing the connection.
Logs from the android app says the conn is alive but it's not. No subscribers in server logs and no messages is going down. Restarting the service by toggling the wakelock pref fixed it.
I haven't wait the 5mn timeout that would probably solve it, but it's longggg anyway :)
I can reproduce it all the time.
@MatMaul commented on GitHub (Jan 17, 2022):
Let's see if it's solved by some websocket magic 🤞 .
@MatMaul commented on GitHub (Jan 17, 2022):
It was still not working after the 5mn timeout.
However websocket recovered pretty quickly (less than 10s) \o/
@binwiederhier commented on GitHub (Jan 17, 2022):
Yeah sort of the reason why I want to switch to the websockets way is because I am incredibly unhappy with how I implemented the HTTP JSON stream. It should eventually recover, but it can take a little time. If the connection breaks it should be only a few seconds though.
If the connection is just silently taken away (like apparently the Huawei phone from Jakob did), it has to wait up to 30s+5min, so quite the long time.
If the 5min timeout is not working for you that's odd. I am not sure how much time I want to spend debugging it, since I want to switch to websockets anyway...
@MatMaul commented on GitHub (Jan 17, 2022):
Yeah let's not bother and harden the ws one I would say.