mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1662] Retry connection on network status change in mobile apps #1160
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#1160
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 @sjozs on GitHub (Mar 17, 2026).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1662
💡 Idea
Mobile apps could reset the retry timeout every time the network status changes (or at least when the user turns on WIFI/mobile data). This would lead to quicker reconnection (and eventually the app could probably limit persistent retries for when there is any kind of network connection, which would help with battery usage, which is something like 55% on my device for some reason, though I'm not sure how that happened, might be a problem with always-on DNS, similarly to #1088).
💻 Target components
Mainly Android and iOS apps, I'm not sure about iOS but on Android there is the ConnectivityManager::registerNetworkCallback API to monitor network change events.
@t-m-w commented on GitHub (Mar 29, 2026):
This would be a nice improvement.
Signal is an example of an app that does this. It reconnects its background connection when you go from Airplane Mode + Wi-Fi Off, to Wi-Fi On, for example -- but only if you aren't using a VPN that obscures the situation by appearing to be "connected" for the entire time, as some do. When I checked ntfy to see if it behaves any better, I saw that it doesn't react to connection changes at all.
That said, since ntfy appears to try to reconnect every 120 seconds on the top end (at least that's what I see with the F-Droid version and a custom server), that's already much better than the situation with Signal + VPN which today resulted in my missing its notifications for more than an hour. Missing them for up to two minutes certainly isn't so bad.