radarlabs / radar-sdk-android

Android SDK for Radar, the leading geofencing and location tracking platform
https://radar.com
Apache License 2.0
75 stars 22 forks source link

Beacon ranging consistently times out for older Android phone #107

Open victorcassone2 opened 3 years ago

victorcassone2 commented 3 years ago

Summary

I was testing out the new beacon functionality on a Google Pixel XL and I was unable to range any beacons that were nearby. It looks like the ranging timeout is set to 5 seconds and on the Pixel XL it consistently goes over 5 seconds. I used a stopwatch and another BLE ranging app(kontakt.io's app) and it took about 7.5 seconds.

I then tested on a Pixel 4 XL and the ranging consistently came back as successful.

Either setting a higher ranging time or having the ability to increase the time myself via the SDK would help alleviate the problem.

Steps to reproduce

  1. Create a Button that calls trackOnce with beacons = true
  2. Trigger button and observe no beacons are returned on the RadarUser.

OS version

Android 10

SDK installation method

via Gradle.

SDK version

3.1.1

nickpatrick commented 3 years ago

@victorcassone2 Thanks, that's great feedback. Yes, we'll look into making these timeouts customizable in a future release.