Agontuk / react-native-geolocation-service

React native geolocation service for iOS and android
https://www.npmjs.com/package/react-native-geolocation-service
MIT License
1.6k stars 290 forks source link

Geolocation.getCurrentPosition always returns San Fransisco lat/long #415

Closed zorro1rr closed 11 months ago

zorro1rr commented 11 months ago

Environment

Run npx react-native info in your terminal and copy the results here. System: OS: macOS 12.6 CPU: (8) x64 Apple M1 Pro Memory: 33.88 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.14.0 - /usr/local/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 9.5.0 - /usr/local/bin/npm Watchman: 2023.02.06.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8609683 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.16 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.8 => 0.70.8 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Platforms

IOS

Versions

Please add the used versions/branches

Description

The following code is always returning {"lat": 37.7657814, "lon": -122.4075538}. Am I missing something?

image

Reproducible Demo

Provide a detailed list of steps that reproduce the issue.

1. 2.

Expected Results

expect to get my local location returned

zorro1rr commented 11 months ago

Sorry I did't realize you could only set a simulated location on IOS simulator. Closing