From dc199101810351282510d9da965a8af92d61ec64 Mon Sep 17 00:00:00 2001 From: Chace Daniels Date: Tue, 4 Aug 2026 15:27:58 -0500 Subject: [PATCH 1/2] fix: keep getting locations after one failed attempt --- ios/Sources/GeolocationPlugin/GeolocationPlugin.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ios/Sources/GeolocationPlugin/GeolocationPlugin.swift b/ios/Sources/GeolocationPlugin/GeolocationPlugin.swift index d63c244..0716144 100644 --- a/ios/Sources/GeolocationPlugin/GeolocationPlugin.swift +++ b/ios/Sources/GeolocationPlugin/GeolocationPlugin.swift @@ -150,6 +150,9 @@ private extension GeolocationPlugin { locationCancellable = locationService?.currentLocationPublisher .catch { [weak self] error -> AnyPublisher in print("An error was found while retrieving the location: \(error)") + // A failure terminates this subscription; re-bind or later callbacks are dropped. RMET-5383 + self?.locationInitialized = false + self?.bindLocationPublisher() if case IONGLOCLocationError.locationUnavailable = error { print("Location unavailable (likely due to backgrounding). Keeping watch callbacks alive.") From 709c4709c73b48bcd227938f630908675fa13862 Mon Sep 17 00:00:00 2001 From: Chace Daniels Date: Wed, 5 Aug 2026 18:45:35 -0500 Subject: [PATCH 2/2] fix(android): update location library --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index ea31b01..a738ab3 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -81,7 +81,7 @@ dependencies { implementation project(':capacitor-android') } - implementation("io.ionic.libs:iongeolocation-android:2.2.1") + implementation("io.ionic.libs:iongeolocation-android:2.2.2") implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" implementation 'com.google.code.gson:gson:2.13.2'