Skip to content

Commit d6f5266

Browse files
fix(ios): fixes an issue where the plugin stops receiving location updates after calling the clearWatch method (#38)
* update IONGeolocationLib dependency * update pod version * update pod version * update pod version * update pod version and checksum * remove development team from example app * update podspec * update Podfile.lock
1 parent 21ed5e0 commit d6f5266

11 files changed

Lines changed: 1518 additions & 73 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
67
# [7.1.4](https://github.com/ionic-team/capacitor-geolocation/compare/v7.1.3...7.1.4) (2025-07-15)
78

89
### Fixes

packages/capacitor-plugin/CapacitorGeolocation.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Pod::Spec.new do |s|
1313
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
1414
s.ios.deployment_target = '14.0'
1515
s.dependency 'Capacitor'
16-
s.dependency 'IONGeolocationLib', spec='~> 1.0'
16+
s.dependency 'IONGeolocationLib', spec='1.0.1'
1717
s.swift_version = '5.1'
1818
end

packages/capacitor-plugin/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ let package = Package(
1515
targets: [
1616
.binaryTarget(
1717
name: "IONGeolocationLib",
18-
url: "https://github.com/ionic-team/ion-ios-geolocation/releases/download/1.0.0/IONGeolocationLib.zip",
19-
checksum: "b117d3681a947f5d367e79abdb3bfc9abf7ab070ea5279d7da634ddd2d54ffdb" // sha-256
18+
url: "https://github.com/ionic-team/ion-ios-geolocation/releases/download/1.0.1/IONGeolocationLib.zip",
19+
checksum: "80e0283964bce3c5d05f61ff4acf4e029305f58d1699a7f16453058ba876bc21" // sha-256
2020
),
2121
.target(
2222
name: "GeolocationPlugin",

packages/capacitor-plugin/ios/Sources/GeolocationPlugin/GeolocationPlugin.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ private extension GeolocationPlugin {
208208
}
209209

210210
func handleLocationRequest(_ enableHighAccuracy: Bool, watchUUID: String? = nil, call: CAPPluginCall) {
211+
bindLocationPublisher()
211212
let configurationModel = IONGLOCConfigurationModel(enableHighAccuracy: enableHighAccuracy)
212213
locationService?.updateConfiguration(configurationModel)
213214

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
22
include ':capacitor-android'
3-
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
3+
project(':capacitor-android').projectDir = new File('../../../node_modules/.pnpm/@capacitor+android@7.4.2_@capacitor+core@7.4.2/node_modules/@capacitor/android/capacitor')
44

55
include ':capacitor-camera'
6-
project(':capacitor-camera').projectDir = new File('../node_modules/@capacitor/camera/android')
6+
project(':capacitor-camera').projectDir = new File('../../../node_modules/.pnpm/@capacitor+camera@7.0.2_@capacitor+core@7.4.2/node_modules/@capacitor/camera/android')
77

88
include ':capacitor-splash-screen'
9-
project(':capacitor-splash-screen').projectDir = new File('../node_modules/@capacitor/splash-screen/android')
9+
project(':capacitor-splash-screen').projectDir = new File('../../../node_modules/.pnpm/@capacitor+splash-screen@7.0.2_@capacitor+core@7.4.2/node_modules/@capacitor/splash-screen/android')
1010

1111
include ':capacitor-geolocation'
12-
project(':capacitor-geolocation').projectDir = new File('../../capacitor-plugin/android')
12+
project(':capacitor-geolocation').projectDir = new File('../../../node_modules/.pnpm/@capacitor+geolocation@file+packages+capacitor-plugin_@capacitor+core@7.4.2/node_modules/@capacitor/geolocation/android')

packages/example-app-capacitor/ios/App/App.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@
349349
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
350350
CODE_SIGN_STYLE = Automatic;
351351
CURRENT_PROJECT_VERSION = 1;
352+
DEVELOPMENT_TEAM = "";
352353
INFOPLIST_FILE = App/Info.plist;
353354
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
354355
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -369,6 +370,7 @@
369370
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
370371
CODE_SIGN_STYLE = Automatic;
371372
CURRENT_PROJECT_VERSION = 1;
373+
DEVELOPMENT_TEAM = "";
372374
INFOPLIST_FILE = App/Info.plist;
373375
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
374376
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";

packages/example-app-capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/example-app-capacitor/ios/App/Podfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'
1+
require_relative '../../../../node_modules/.pnpm/@capacitor+ios@7.4.2_@capacitor+core@7.4.2/node_modules/@capacitor/ios/scripts/pods_helpers'
22

33
platform :ios, '14.0'
44
use_frameworks!
@@ -9,11 +9,11 @@ use_frameworks!
99
install! 'cocoapods', :disable_input_output_paths => true
1010

1111
def capacitor_pods
12-
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
13-
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
14-
pod 'CapacitorCamera', :path => '../../node_modules/@capacitor/camera'
15-
pod 'CapacitorSplashScreen', :path => '../../node_modules/@capacitor/splash-screen'
16-
pod 'CapacitorGeolocation', :path => '../../../capacitor-plugin'
12+
pod 'Capacitor', :path => '../../../../node_modules/.pnpm/@capacitor+ios@7.4.2_@capacitor+core@7.4.2/node_modules/@capacitor/ios'
13+
pod 'CapacitorCordova', :path => '../../../../node_modules/.pnpm/@capacitor+ios@7.4.2_@capacitor+core@7.4.2/node_modules/@capacitor/ios'
14+
pod 'CapacitorCamera', :path => '../../../../node_modules/.pnpm/@capacitor+camera@7.0.2_@capacitor+core@7.4.2/node_modules/@capacitor/camera'
15+
pod 'CapacitorSplashScreen', :path => '../../../../node_modules/.pnpm/@capacitor+splash-screen@7.0.2_@capacitor+core@7.4.2/node_modules/@capacitor/splash-screen'
16+
pod 'CapacitorGeolocation', :path => '../../../../node_modules/.pnpm/@capacitor+geolocation@file+packages+capacitor-plugin_@capacitor+core@7.4.2/node_modules/@capacitor/geolocation'
1717
end
1818

1919
target 'App' do
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
PODS:
2-
- Capacitor (7.0.1):
2+
- Capacitor (7.4.2):
33
- CapacitorCordova
4-
- CapacitorCamera (7.0.0):
4+
- CapacitorCamera (7.0.2):
55
- Capacitor
6-
- CapacitorCordova (7.0.1)
7-
- CapacitorGeolocation (7.1.2):
6+
- CapacitorCordova (7.4.2)
7+
- CapacitorGeolocation (7.1.4):
88
- Capacitor
9-
- IONGeolocationLib (~> 1.0)
10-
- CapacitorSplashScreen (7.0.0):
9+
- IONGeolocationLib (= 1.0.1)
10+
- CapacitorSplashScreen (7.0.2):
1111
- Capacitor
12-
- IONGeolocationLib (1.0.0)
12+
- IONGeolocationLib (1.0.1)
1313

1414
DEPENDENCIES:
15-
- "Capacitor (from `../../node_modules/@capacitor/ios`)"
16-
- "CapacitorCamera (from `../../node_modules/@capacitor/camera`)"
17-
- "CapacitorCordova (from `../../node_modules/@capacitor/ios`)"
18-
- CapacitorGeolocation (from `../../../capacitor-plugin`)
19-
- "CapacitorSplashScreen (from `../../node_modules/@capacitor/splash-screen`)"
15+
- "Capacitor (from `../../../../node_modules/.pnpm/@capacitor+ios@7.4.2_@capacitor+core@7.4.2/node_modules/@capacitor/ios`)"
16+
- "CapacitorCamera (from `../../../../node_modules/.pnpm/@capacitor+camera@7.0.2_@capacitor+core@7.4.2/node_modules/@capacitor/camera`)"
17+
- "CapacitorCordova (from `../../../../node_modules/.pnpm/@capacitor+ios@7.4.2_@capacitor+core@7.4.2/node_modules/@capacitor/ios`)"
18+
- "CapacitorGeolocation (from `../../../../node_modules/.pnpm/@capacitor+geolocation@file+packages+capacitor-plugin_@capacitor+core@7.4.2/node_modules/@capacitor/geolocation`)"
19+
- "CapacitorSplashScreen (from `../../../../node_modules/.pnpm/@capacitor+splash-screen@7.0.2_@capacitor+core@7.4.2/node_modules/@capacitor/splash-screen`)"
2020

2121
SPEC REPOS:
2222
trunk:
2323
- IONGeolocationLib
2424

2525
EXTERNAL SOURCES:
2626
Capacitor:
27-
:path: "../../node_modules/@capacitor/ios"
27+
:path: "../../../../node_modules/.pnpm/@capacitor+ios@7.4.2_@capacitor+core@7.4.2/node_modules/@capacitor/ios"
2828
CapacitorCamera:
29-
:path: "../../node_modules/@capacitor/camera"
29+
:path: "../../../../node_modules/.pnpm/@capacitor+camera@7.0.2_@capacitor+core@7.4.2/node_modules/@capacitor/camera"
3030
CapacitorCordova:
31-
:path: "../../node_modules/@capacitor/ios"
31+
:path: "../../../../node_modules/.pnpm/@capacitor+ios@7.4.2_@capacitor+core@7.4.2/node_modules/@capacitor/ios"
3232
CapacitorGeolocation:
33-
:path: "../../../capacitor-plugin"
33+
:path: "../../../../node_modules/.pnpm/@capacitor+geolocation@file+packages+capacitor-plugin_@capacitor+core@7.4.2/node_modules/@capacitor/geolocation"
3434
CapacitorSplashScreen:
35-
:path: "../../node_modules/@capacitor/splash-screen"
35+
:path: "../../../../node_modules/.pnpm/@capacitor+splash-screen@7.0.2_@capacitor+core@7.4.2/node_modules/@capacitor/splash-screen"
3636

3737
SPEC CHECKSUMS:
38-
Capacitor: de199cba6c8b20995428ad0b7cb0bc6ca625ffd4
39-
CapacitorCamera: 20a37684b81c69c0c33fb5a7216919f135371a6f
40-
CapacitorCordova: 63d476958d5022d76f197031e8b7ea3519988c64
41-
CapacitorGeolocation: b005744861676af9abd19a0682f0b1af32cc2c99
42-
CapacitorSplashScreen: 7e7a0a1113833032f196b3af6fa437baccacf5bc
43-
IONGeolocationLib: 81f33f88d025846946de2cf63b0c7628e7c6bc9d
38+
Capacitor: 156d98aba46ec01dde72c4bbb92fa626837cad29
39+
CapacitorCamera: 6e18d54c8ab30d7dc7b8cd93d96f9b4f57e9202a
40+
CapacitorCordova: 5e58d04631bc5094894ac106e2bf1da18a9e6151
41+
CapacitorGeolocation: fb1fd604f96918e822fab47d9fb545860a941df1
42+
CapacitorSplashScreen: 8d6c8cb0542a8e81585c593815db8785ed8ce454
43+
IONGeolocationLib: 20f9d0248a0b5264511fb57a37e25dd2badf797a
4444

45-
PODFILE CHECKSUM: 6e3f0881e9bf33b13c7f481b07ee65b5c9321cb0
45+
PODFILE CHECKSUM: d60ef4857cc8bc4b24105bcdc2fa78eadbb6373b
4646

4747
COCOAPODS: 1.16.2

packages/example-app-capacitor/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)