Skip to content
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

watchID always 0 when i called watchPosition #419

Open
ducsilva opened this issue Aug 17, 2023 · 2 comments
Open

watchID always 0 when i called watchPosition #419

ducsilva opened this issue Aug 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ducsilva
Copy link

Environment

System:
OS: macOS 13.2.1
CPU: (8) arm64 Apple M1 Pro
Memory: 86.28 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.16.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.5.1 - /usr/local/bin/npm
Watchman: 2022.09.26.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /Users/ducnguyen/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK:
Android NDK: 22.1.7171670
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.9862592
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 18.0.2.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.7 => 0.71.7

Platforms

issue related to Android

Versions

Please add the used versions/branches

  • Android:
  • iOS:
  • react-native-geolocation-service: ^5.3.1
  • react-native: 0.71.7
  • react: 18.2.0

Description

First, I would like to thank you for the useful software. Everything works very well. currently ,i am getting the position through watchPosition function then have problem watchID return always zero. i don't know where i am confused can someone help me

My code
Screenshot 2023-08-17 at 10 54 48

Expected Results

I want to clearWatch to unmount component

@ducsilva ducsilva added the bug Something isn't working label Aug 17, 2023
@NgVSang
Copy link

NgVSang commented Oct 10, 2023

I got the same issue when using macOS for coding android, but with ubuntu it working good, dont know why.

@mare95
Copy link

mare95 commented Oct 16, 2023

Have you found a solution for this? I'm getting the same error. App crashes when i start watching for position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants