react-native-radar icon indicating copy to clipboard operation
react-native-radar copied to clipboard

ERROR_LOCATION when setting desiredStoppedUpdateInterval to 0

Open ryan-granlund opened this issue 3 years ago • 1 comments

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

ryan-granlund avatar Mar 17 '21 07:03 ryan-granlund

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

nickpatrick avatar Jul 13 '21 19:07 nickpatrick

@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.

brettguenther avatar Jun 30 '23 14:06 brettguenther