expo: Android Location.getCurrentPositionAsync as per sdk32 docs not working, but as per sdk31 docs is working
π Bug Report
Android Location.getCurrentPositionAsync as per sdk32 docs not working, but as per sdk31 docs is working
Environment
SDK 32, Android
Expo CLI 2.18.3 environment info: System: OS: macOS 10.14.4 Shell: 3.2.57 - /bin/bash Binaries: Node: 10.15.3 - /usr/local/bin/node npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman IDEs: Android Studio: 3.3 AI-182.5107.16.33.5314842 Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild npmPackages: expo: ^32.0.6 => 32.0.6 react: ^16.5.0 => 16.5.0 react-native: https://github.com/expo/react-native/archive/sdk-32.0.1.tar.gz => 0.57.1 react-navigation: ^3.4.1 => 3.4.1 npmGlobalPackages: expo-cli: 2.18.3
Steps to Reproduce
Working Code: let position = await Location.getCurrentPositionAsync({enableHighAccuracy:true}); Not Working Code: let position = await Location.getCurrentPositionAsync({accuracy:Location.Accuracy.Lowest});
Expected Behavior
Actual Behavior
Reproducible Demo
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 25 (6 by maintainers)
Ok so the issue happened when I chose these :
Location.getCurrentPositionAsync({accuracy:Location.Accuracy.Lowest})or
Location.getCurrentPositionAsync({accuracy:Location.Accuracy.Balanced})but worked fine when I chose
Location.getCurrentPositionAsync({accuracy:Location.Accuracy.High})This bug report is saying that
works correctly, but
results in an error
same issue too. in my case, using android 6.0.1 (samsung galaxy note4) but same code is working on ios12 (iphoneX)
βexpoβ: β32.0.0β, βreact-nativeβ: βhttps://github.com/expo/react-native/archive/sdk-32.0.0.tar.gzβ,