Closed ryan-granlund closed 1 year ago
Hi @ryan-granlund, does this still repro for you on the latest version, 3.1.4
? https://github.com/radarlabs/react-native-radar/releases/tag/3.1.4
@ryan-granlund - we have changed our underlying implementation of Radar .getLocation()
so please file a new issue if you are still experiencing problems and we can investigate further.
Summary
On Android when setting the desiredStoppedUpdateInterval to 0, an ERROR_LOCATION error is received when calling Radar.getLocation()
ERROR_LOCATION at Object.fn [as getLocation] (VM4 index.bundle:2029) at Object.getLocation (VM4 index.bundle:97783) at currentLocationRadar (VM4 index.bundle:299848) at currentLocation$ (VM4 index.bundle:299916) at tryCatch (VM4 index.bundle:29091) at Generator.invoke [as _invoke] (VM4 index.bundle:29264) at Generator.next (VM4 index.bundle:29134) at tryCatch (VM4 index.bundle:29091) at invoke (VM4 index.bundle:29164) at VM4 index.bundle:29174
Code to reproduce
Radar.startTrackingCustom({ desiredStoppedUpdateInterval: 0, desiredMovingUpdateInterval: 150, desiredSyncInterval: 140, desiredAccuracy: 'high', stopDuration: 180, stopDistance: 5, sync: 'all', replay: 'none', showBlueBar: false })
Steps to reproduce
Set the above custom tracking settings and call Radar.getLocation().
OS version
Android
SDK installation method
SDK version
reproduced on 28 and 29
Other information