radarlabs / react-native-radar

React Native module for Radar, the leading geofencing and location tracking platform
https://radar.com
Apache License 2.0
170 stars 32 forks source link

Device Specific Methods returning [Error: ERROR_LOCATION] #109

Closed ifielder closed 4 years ago

ifielder commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

Thanks for the quick response!