Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 3 additions & 0 deletions ios/Sources/GeolocationPlugin/GeolocationPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ private extension GeolocationPlugin {
locationCancellable = locationService?.currentLocationPublisher
.catch { [weak self] error -> AnyPublisher<IONGLOCPositionModel, Never> 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.")
Expand Down