-
Notifications
You must be signed in to change notification settings - Fork 11
fix(ios): added timeout implementation for both getCurrentPosition and watchPosition #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0d463d1
9c56409
c2874c3
ed9a106
56cdd84
8119da9
dd25a7d
bfbb0a5
44e4878
73a11f0
a54221d
b15174e
dd83b52
818a8d0
3e8a2ed
52be7a8
597af24
e49c797
0e20bc1
e369ccd
e27045b
ae1bcf4
88902a7
2f621fb
b14deb0
6f151c5
18fff23
3583623
1746507
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When testing I'm observing this behavior in the example app in this repo:
All this leads me to believe that perhaps there needs to be logic in place to remove the watch callbacks in case of timeout error? Or to generalize the question: Which There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, let me take look. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With your change now, I'm having this issue: I have a watch in progress, and I trigger a second one (or a get current position) that times out, it also stops receiving updates for the first one. This and the previous issue are all tied to the fact that timeouts are not specific to one single watch or location request. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’ve have figured out the cause in When a watch is already active and a This issue existed before the current changes, so it will not be addressed in this PR. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| // DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN | ||
| include ':capacitor-android' | ||
| project(':capacitor-android').projectDir = new File('../../../node_modules/.pnpm/@[email protected].2_@[email protected].2/node_modules/@capacitor/android/capacitor') | ||
| project(':capacitor-android').projectDir = new File('../../../node_modules/.pnpm/@[email protected].3_@[email protected].3/node_modules/@capacitor/android/capacitor') | ||
|
|
||
| include ':capacitor-camera' | ||
| project(':capacitor-camera').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected].2/node_modules/@capacitor/camera/android') | ||
| project(':capacitor-camera').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected].3/node_modules/@capacitor/camera/android') | ||
|
|
||
| include ':capacitor-splash-screen' | ||
| project(':capacitor-splash-screen').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected].2/node_modules/@capacitor/splash-screen/android') | ||
| project(':capacitor-splash-screen').projectDir = new File('../../../node_modules/.pnpm/@[email protected]_@[email protected].3/node_modules/@capacitor/splash-screen/android') | ||
|
|
||
| include ':capacitor-geolocation' | ||
| project(':capacitor-geolocation').projectDir = new File('../../capacitor-plugin/android') |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| require_relative '../../../../node_modules/.pnpm/@[email protected].2_@[email protected].2/node_modules/@capacitor/ios/scripts/pods_helpers' | ||
| require_relative '../../../../node_modules/.pnpm/@[email protected].3_@[email protected].3/node_modules/@capacitor/ios/scripts/pods_helpers' | ||
|
|
||
| platform :ios, '15.0' | ||
| use_frameworks! | ||
|
|
@@ -9,10 +9,10 @@ use_frameworks! | |
| install! 'cocoapods', :disable_input_output_paths => true | ||
|
|
||
| def capacitor_pods | ||
| pod 'Capacitor', :path => '../../../../node_modules/.pnpm/@[email protected].2_@[email protected].2/node_modules/@capacitor/ios' | ||
| pod 'CapacitorCordova', :path => '../../../../node_modules/.pnpm/@[email protected].2_@[email protected].2/node_modules/@capacitor/ios' | ||
| pod 'CapacitorCamera', :path => '../../../../node_modules/.pnpm/@[email protected]_@[email protected].2/node_modules/@capacitor/camera' | ||
| pod 'CapacitorSplashScreen', :path => '../../../../node_modules/.pnpm/@[email protected]_@[email protected].2/node_modules/@capacitor/splash-screen' | ||
| pod 'Capacitor', :path => '../../../../node_modules/.pnpm/@[email protected].3_@[email protected].3/node_modules/@capacitor/ios' | ||
| pod 'CapacitorCordova', :path => '../../../../node_modules/.pnpm/@[email protected].3_@[email protected].3/node_modules/@capacitor/ios' | ||
| pod 'CapacitorCamera', :path => '../../../../node_modules/.pnpm/@[email protected]_@[email protected].3/node_modules/@capacitor/camera' | ||
| pod 'CapacitorSplashScreen', :path => '../../../../node_modules/.pnpm/@[email protected]_@[email protected].3/node_modules/@capacitor/splash-screen' | ||
| pod 'CapacitorGeolocation', :path => '../../../capacitor-plugin' | ||
| end | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,47 +1,47 @@ | ||
| PODS: | ||
| - Capacitor (8.0.0-alpha.2): | ||
| - Capacitor (8.0.0-alpha.3): | ||
| - CapacitorCordova | ||
| - CapacitorCamera (8.0.0-alpha.1): | ||
| - Capacitor | ||
| - CapacitorCordova (8.0.0-alpha.2) | ||
| - CapacitorGeolocation (8.0.0-next.2): | ||
| - CapacitorCordova (8.0.0-alpha.3) | ||
| - CapacitorGeolocation (8.0.0-next.3): | ||
| - Capacitor | ||
| - IONGeolocationLib (= 1.0.1) | ||
| - IONGeolocationLib (= 2.0.0) | ||
| - CapacitorSplashScreen (8.0.0-alpha.1): | ||
| - Capacitor | ||
| - IONGeolocationLib (1.0.1) | ||
| - IONGeolocationLib (2.0.0) | ||
|
|
||
| DEPENDENCIES: | ||
| - "Capacitor (from `../../../../node_modules/.pnpm/@[email protected].2_@[email protected].2/node_modules/@capacitor/ios`)" | ||
| - "CapacitorCamera (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected].2/node_modules/@capacitor/camera`)" | ||
| - "CapacitorCordova (from `../../../../node_modules/.pnpm/@[email protected].2_@[email protected].2/node_modules/@capacitor/ios`)" | ||
| - "Capacitor (from `../../../../node_modules/.pnpm/@[email protected].3_@[email protected].3/node_modules/@capacitor/ios`)" | ||
| - "CapacitorCamera (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected].3/node_modules/@capacitor/camera`)" | ||
| - "CapacitorCordova (from `../../../../node_modules/.pnpm/@[email protected].3_@[email protected].3/node_modules/@capacitor/ios`)" | ||
| - CapacitorGeolocation (from `../../../capacitor-plugin`) | ||
| - "CapacitorSplashScreen (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected].2/node_modules/@capacitor/splash-screen`)" | ||
| - "CapacitorSplashScreen (from `../../../../node_modules/.pnpm/@[email protected]_@[email protected].3/node_modules/@capacitor/splash-screen`)" | ||
|
|
||
| SPEC REPOS: | ||
| trunk: | ||
| - IONGeolocationLib | ||
|
|
||
| EXTERNAL SOURCES: | ||
| Capacitor: | ||
| :path: "../../../../node_modules/.pnpm/@[email protected].2_@[email protected].2/node_modules/@capacitor/ios" | ||
| :path: "../../../../node_modules/.pnpm/@[email protected].3_@[email protected].3/node_modules/@capacitor/ios" | ||
| CapacitorCamera: | ||
| :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected].2/node_modules/@capacitor/camera" | ||
| :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected].3/node_modules/@capacitor/camera" | ||
| CapacitorCordova: | ||
| :path: "../../../../node_modules/.pnpm/@[email protected].2_@[email protected].2/node_modules/@capacitor/ios" | ||
| :path: "../../../../node_modules/.pnpm/@[email protected].3_@[email protected].3/node_modules/@capacitor/ios" | ||
| CapacitorGeolocation: | ||
| :path: "../../../capacitor-plugin" | ||
| CapacitorSplashScreen: | ||
| :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected].2/node_modules/@capacitor/splash-screen" | ||
| :path: "../../../../node_modules/.pnpm/@[email protected]_@[email protected].3/node_modules/@capacitor/splash-screen" | ||
|
|
||
| SPEC CHECKSUMS: | ||
| Capacitor: f88db94b173c6d2c97003248197f749674d42dc8 | ||
| Capacitor: 91ac12cf2ebfb294c72ad1f7e5b71103a9af6254 | ||
| CapacitorCamera: f072b76519f1a5981becb6caa3ab10c79622ae66 | ||
| CapacitorCordova: 9b60d7dd7f5035cefe9b5f7f3edf11ccd93b6ae6 | ||
| CapacitorGeolocation: ed8dbf1b8b4f3bc415c1407333199c383cefa960 | ||
| CapacitorCordova: beaf46c43cfd3d28e09c2a8bfcb40d8387e6dd8a | ||
| CapacitorGeolocation: a7b46178fece0f49a7f856e9a678f02adb40d347 | ||
| CapacitorSplashScreen: 6a9a07f9b1313faad49dde7bb8f12b7c4fcc3acf | ||
| IONGeolocationLib: 20f9d0248a0b5264511fb57a37e25dd2badf797a | ||
| IONGeolocationLib: a5e40b54edc2ee9902036eda5aaa41ddf07bb68d | ||
|
|
||
| PODFILE CHECKSUM: 4965d688d87bbc9772caec9b620016902fb41d32 | ||
| PODFILE CHECKSUM: 9f3aa02b123df21b0390efa217179df8854cdaff | ||
|
|
||
| COCOAPODS: 1.16.2 |
Uh oh!
There was an error while loading. Please reload this page.