You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beacon scanning should continue as usual independent of the time app is used.
Actual behavior
Beacon scanning stops after ~10 minutes while app is on foreground and enableForegroundServiceScanning is called. This is also reproducible in the AltBeaconReference application.
@davidgyoung I have pinpointed the reason for this issue, the DEFAULT_SCAN_TIMOUT_MILLIS was reduced from 30 minutes to 10 minutes in the Android OS with the following commit;
So the variable in the CycledLeScanner class to restart scanning and enforce long scans below;
public static final long ANDROID_N_MAX_SCAN_DURATION_MILLIS = 30 * 60 * 1000l; // 30 minutes
should be switched to 10 minutes.
Also, as far as I understand, in order to enforce long scans we need to set the mLongScanForcingEnabled parameter of CycledLeScanner, but I could not find where we can set this as an integrator of the library.
Expected behavior
Beacon scanning should continue as usual independent of the time app is used.
Actual behavior
Beacon scanning stops after ~10 minutes while app is on foreground and enableForegroundServiceScanning is called. This is also reproducible in the AltBeaconReference application.
Steps to reproduce this behavior
Mobile device model and OS version
Samsung S23 - Android 14
Android Beacon Library version
org.altbeacon:android-beacon-library:2.20.5 & org.altbeacon:android-beacon-library:2.20
The text was updated successfully, but these errors were encountered: