github binwiederhier/ntfy-android v1.25.2

6 hours ago

This release makes the "connection lost" alert configurable and turns it off by default. Folks did not like it and many reached out or even gave ntfy bad reviews. I heard you! You can re-enable the alert in the advanced settings.

The release also tries to be smarter about not retrying the connection at all if the app is in flight mode, or has no network. If there is no network, ntfy now keeps the foreground service alive and shows a "Waiting for network" notification, then resumes automatically once connectivity returns.

Another change related to the networking is that we now force-reconnect when the connection is changed, e.g. during transitions from Wi-Fi to cellular network, or vice versa. That should allow for faster transitions during hand-overs.

We also increase the client-side WebSocket ping interval from 1 minute to 3 minutes, which should slightly improve battery life, especially when paired with increasing the server-side keepalive-interval in your self-hosted server.

Features:

  • Add configurable "Alert when connection is lost" setting, turned off by default (#1665, #1662, #1652, #1655, thanks to @tintamarre, @sjozs, @TheRealOne78, and @DAE51D for reporting)
  • Handle "no network" gracefully: when the device is offline or in airplane mode, ntfy now stops retrying, suppresses the connection-lost alert, and keeps the foreground service alive with a "Waiting for network" notification, resuming instant delivery automatically when connectivity returns (ntfy-android#165, thanks to @tintamarre for the contribution, and #1709, thanks to @isaitgirl for reporting)
  • Improve battery life by increasing WebSocket client ping interval from 1 min to 3 min, and reconnect instantly on Wi-Fi/cellular/VPN transitions (ntfy-android#113, thanks to @ftilde for the investigation)
  • Disable UnifiedPush components when UnifiedPush is disabled in settings (ntfy-android#168, thanks to @p1gp1g for the contribution)

Bug fixes + maintenance:

  • Fix the "connection lost" alert briefly disappearing and re-firing when roaming between networks (e.g. Wi-Fi to cellular), by no longer cancelling it during the transient no-network gap of a handover
  • Fix the "connection lost" alert repeatedly waking the screen while a server stayed unreachable, by no longer re-posting the alert once it is already showing
  • Fix the "connection lost" alert firing late, erratically, or not at all when a connection kept dropping (e.g. a flaky server) rather than being refused outright, by tracking how long the connection has been down independently of whether the drop warrants a UI error
  • Undo automatic phone number linking for numbers in message body (ntfy-android#170, thanks to @acortelyou for the contribution)
  • Fix subscription icons disappearing after a few days due to Android clearing cache (#1322, thanks to @mcanning for reporting)
  • Fix UnifiedPush failed_reason being sent as an enum instead of a string, which caused an exception in receiving apps that read it as a string extra (ntfy-android#182, thanks to @p1gp1g for the contribution)

Don't miss a new ntfy-android release

NewReleases is sending notifications on new releases.