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

Confidence level not showing on android responses in SDK #274

Closed chriszipdev closed 11 months ago

chriszipdev commented 11 months ago

Summary

When calling trackOnce on android phones, we are not seeing the confidence level come through on an entered_place event but we are seeing it on IOS devices. The level is shows on the radar dashboard but seems to be lost when the SDK parses the information?

Code to reproduce

Radar.trackOnce({ latitude: 30.26377468456642, longitude: -97.73326788611571, accuracy: 99}).then((result) => { console.log( result) });

Steps to reproduce

call trackOnce on IOS and Android but with an entered_place event

OS version

IOS and Android

SDK installation method

yarn add react-native-radar

SDK version

3.8.9

Other information

IOS responce: {"events": [{"_id": "655d73c17565630043a621e2", "alternatePlaces": [], "confidence": 3, "live": false, "location": {"coordinates": [], "type": "Point"}, "place": {"_id": "5dc9b0fe2004860034bf2b46", "categories": [], "chain": [], "location": [], "name": "Target"}, "type": "user.entered_place"}]} Android responce: {"events": [{"_id": "656e91e828156b0033c23aec", "actualCreatedAt": "2023-12-05T02:58:48.315Z", "alternatePlaces": [], "createdAt": "2023-12-05T02:58:48.315Z", "duration": 0, "live": false, "location": [], "place": [], "replayed": false, "type": "user.entered_place"}]}

lmeier commented 11 months ago

Hey @chriszipdev, thanks for reporting.

Certainly looks like an issue on our side — we're investigating today and will report back here soon.

Thanks again!

Liam

chriszipdev commented 11 months ago

Thank you!

lmeier commented 11 months ago

Fixed in 3.8.17. Thanks again @chriszipdev

chriszipdev commented 11 months ago

Looks good on my end! Thanks again for such a fast turnaround time 🙌