From 992f9a5392e1f5f63c2115b9be09a376529430c1 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Tue, 7 Apr 2026 14:55:24 -0400 Subject: [PATCH] Bump --- app/build.gradle | 4 ++-- app/src/main/java/io/heckel/ntfy/app/Application.kt | 6 ++++++ .../metadata/android/en-US/changelog/{NEXT.txt => 61.txt} | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) rename fastlane/metadata/android/en-US/changelog/{NEXT.txt => 61.txt} (74%) diff --git a/app/build.gradle b/app/build.gradle index c34c6dc7..343ea2f9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -17,8 +17,8 @@ android { minSdkVersion 26 targetSdkVersion 36 - versionCode 60 - versionName "1.24.0" + versionCode 61 + versionName "1.25.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/app/src/main/java/io/heckel/ntfy/app/Application.kt b/app/src/main/java/io/heckel/ntfy/app/Application.kt index 02b7fbd9..4cce58e3 100644 --- a/app/src/main/java/io/heckel/ntfy/app/Application.kt +++ b/app/src/main/java/io/heckel/ntfy/app/Application.kt @@ -40,6 +40,7 @@ class Application : Application() { // where the underlying socket is bound to a network that's no longer the default. // Without this, broken connections would only be detected via the (potentially // long) ping/pong timeout. + Log.i(TAG, "Default network available ($network); forcing reconnect of all connections") ioScope.launch { repository.getSubscriptions() .map { it.baseUrl } @@ -49,8 +50,13 @@ class Application : Application() { } } override fun onLost(network: Network) { + Log.i(TAG, "Default network lost ($network); refreshing subscriber service") SubscriberServiceManager.refresh(this@Application) } }) } + + companion object { + private const val TAG = "NtfyApplication" + } } diff --git a/fastlane/metadata/android/en-US/changelog/NEXT.txt b/fastlane/metadata/android/en-US/changelog/61.txt similarity index 74% rename from fastlane/metadata/android/en-US/changelog/NEXT.txt rename to fastlane/metadata/android/en-US/changelog/61.txt index e09a06af..27e619d6 100644 --- a/fastlane/metadata/android/en-US/changelog/NEXT.txt +++ b/fastlane/metadata/android/en-US/changelog/61.txt @@ -1,6 +1,7 @@ Features: * Add configurable "Alert when connection is lost" setting (#1665, #1662, #1652, #1655, thanks to @tintamarre, @sjozs, @TheRealOne78, and @DAE51D for reporting) * Suppress connection alerts and stop foreground service when there is no network (ntfy-android#165, thanks to @tintamarre for the contribution) +* Improve battery life by increasing WebSocket client ping interval from 1 min to 5 min, and reconnect instantly on Wi-Fi/cellular/VPN transitions (ntfy-android#113, thanks to @ftilde for the investigation) Bug fixes + maintenance: * Undo automatic phone number linking for numbers in message body (ntfy-android#170, thanks to @acortelyou for the contribution)