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

Device Specific Methods returning [Error: ERROR_LOCATION] #109

Closed
ifielder opened this issue May 28, 2020 · 2 comments
Closed

Device Specific Methods returning [Error: ERROR_LOCATION] #109

ifielder opened this issue May 28, 2020 · 2 comments

Comments

@ifielder
Copy link

Summary

Using any of the device-specific radar methods return errors from the promise
ex.

getLocation()
trackOnce()
searchGeofences()

Console
)

Above is the standard console output from the example file App.js

Code to reproduce

 cd /example && npm install && npm install react-native-radar@latest

npx react-native run android

Steps to reproduce

clone react-native-radar
add publishing key to MainActivity.java

OS version

Mac OS catalina 10.15.4

SDK installation method

installed the react-native-radar example

SDK version

3.0.0

Other information

My initial thoughts are that in may have something to do with the google play services API

@nickpatrick
Copy link
Contributor

Hey, are you testing in the emulator? Make sure high accuracy location is turned on in the device settings and make sure a location is provided in the emulator settings.

@ifielder
Copy link
Author

Turning on high accuracy location worked for me! (using a physical device).

Thanks for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants