react-native-beacons-manager icon indicating copy to clipboard operation
react-native-beacons-manager copied to clipboard

Stop detecting beacons after 30 minutes

Open Joohelmer opened this issue 3 years ago • 3 comments

Version

I'm using @newoceaninfosys ' fork: github.com/newoceaninfosys/react-native-beacons-manager/

Platform

Android

OS version

android 8.0 react native 0.61.2

Steps to reproduce

  1. Start background scan
  2. Wait 30 minutes

Hello, I run a task to scan the beacons. For that I added a log file to each scan which makes me go up the detected beacons. It works fine for 30 minutes, after its 30 minutes, the scan no longer detects beacons. I get a log file with an empty array.

Anyone would know how to fix the problem where would have a track? Thank you

Joohelmer avatar Sep 22 '20 07:09 Joohelmer

Sure, can you try to add theses lines in the AndroidManifest.xml

<service android:name="org.altbeacon.beacon.service.BeaconService" tools="replace"> <meta-data android:name="longScanForcingEnabled" android:value="true"/> </service>

Joohelmer avatar Nov 08 '20 19:11 Joohelmer

Sorry but I don't use this library on IOS.

Joohelmer avatar Nov 11 '20 17:11 Joohelmer

Hi, this is because of timer of scanning. And check the monitoring sync interval In my case, I adjust the below codes and okay

image

nayookyaw avatar Mar 09 '22 15:03 nayookyaw