Bug Fixes:
- Correct accessor method for Beacon#getRunningAverageRssi() (#536, Pietro De Caro)
Enhancements:
- Add ability to circumvent prohibition against scans running for > 30 minutes on Android N. (#529, David G. Young)
- Add support for running the beacon scanning service in a separate process and working with application setups that have more than one process. (#479, David G. Young)
Bug Fixes:
- Fix Google Play submission errors by no longer using uses-permission-sdk-23 in Manifest (#527, David G. Young)
- Fix failure to restart scanning in some cases after bluetooth has been off but then is turned back on. (#519, David G. Young)
- Fix failure to stop scanning when unbinding from service or when the between scan period is nonzero. (#507, David G. Young)
- Fix possible
NullPointerException
withBackgroundPowerSaver
on devices prior to Android 4.3 Jelly Bean MR 2 (API 18) (#516, Aaron Kromer) - Fix rare edge case causing
NoSuchElementException
when using the legacyBeaconManager#getMonitoringNotifier
andBeaconManager#getRangingNotifier
where the notifier sets were modified external toBeaconManager
by another thread (#516, Aaron Kromer) - Fix inability to use
RunningAverageRssiFilter.setSampleExpirationMilliseconds(...)
(#523, David G. Young)
Enhancements:
- Don't restart BLE scanning periodically if the library confrims device can detect duplicate advertisements in a single scan, leading to more reliable detections with short scan cycles (#491, David G. Young)
Bug Fixes:
- Deprecate misspelled methods
removeMonitoreNotifier
andsetRegionStatePeristenceEnabled
in favor of correctly spelled alternatives. (#461, Marco Salis) - Fix bug causing brief scan dropouts after starting a scan after a long period of inactivity (i.e. startup and background-foreground transitions) due to Android N scan limits (#489, Aaron Kromer)
- Ensure thread safety for singleton creation of
BeaconManager
,DetectionTracker
,MonitoringStatus
, andStats
. (#494, Aaron Kromer)
Bug Fixes:
- Provide access to monitored regions after restoring state (#456, David G. Young)
- Don't start or stop scans if bluetooth state is off to prevent crashes on HTC devices (#452, David G. Young)
- Protect against SecurityException crashes caused by Samsung Knox (#444, David G. Young)
- No Monitoring information after killing an application built with the minify mode (#432, ost-ct)
- Start and stop BLE scans from a background thread to prevent blocking the UI (#430, Marco Salis)
- Prevent flapping (rapid exit then enter) of restored monitored regions (#426, Elias Lecomte)
- Don't implicitly require bluetooth in manifest (Commit b3ac622e2b, David G. Young)
Bug Fixes:
- Fixes spurious entry/exit events on Android N caused by OS imposed limits of 5 scans every 30 seconds. (#419, David G. Young)
Enhancements:
- Multiple ranging and monitoring notifiers are supported via
BeaconManger#addRangeNotifier(RangeNotifier notifier)
andBeaconManger#addMonitorNotifier(MonitorNotifier notifier)
(#392, ost-ct) - App bootstrap regions by be dynamically changed with
new
RegionBootstrap#removeRegion(Region region)
andRegionBootstrap#addRegion(Region region)
methods. (#369, Aristide) - Improved region state behavior by adding
BeaconManager#requestStateForRegion(Region)
andBeaconManager#setRegionStatePeristenceEnabled(boolean)
(#405, David G. Young) - Added a guaranteed callback to
MonitorNotifier#didDetermineStateForRegion(int state, Region region)
when starting monitoring. At app startup, this returns the previously known persisted state. (#405, David G. Young) - Custom distance calculation for Moto X 2nd gen XT1092 (#386, Clément Garcia)
- More flexible support for combining multi-frame beacons with
Beacon#getExtraDataFields()
(#387, mfatiga)
Bug Fixes:
- Eddystone frame detection on Google's Android BeaconTools and Chrome fixed by adding missing service UUID PDU. (#401, David G. Young)
- Beacon data fields of over four bytes are now be parsed correctly. (#373, Junsung Lim)
- Region persistence app freezes resolved by limiting persisted regions to 50 (#405, David G. Young)
- Fixed inability to starting monitoring for a different Region definition with the same uniqueId (#405, David G. Young)
- Fixes Eddystone-URL layout to support the full 17 bytes for URLs (uses 18 bytes total: 1 byte for schema and 17 bytes for URL) (#377, Mario Pucci)
- Fix potential context leak in
BeaconManager
(#381, Ovidiu Latcu)
Bug Fixes:
- As of the 2.8 release, scanning would never start on Android 4.x devices unless the application manually added ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permissions to the AndroidManifest.xml. This fix makes it so this is not required for 4.x devices, as was the case prior to 2.8. (#365, David G. Young)
Enhancements:
- Retains monitored regions across service restarts, preventing apps from getting multiple region entry callbacks each time the service restarts. (#315, Mateusz Sarzyński)
- Add string identifier to BeaconParser which can be referenced by decoded Beacon object, allowing easy determination of beacon type. (#333, David G. Young)
- Switch to using ELAPSED_REALTIME clocks, so scanning doesn't stop on devices without a battery-backed RTC (#339, Luca Niccoli)
- Add ability to access raw EDDYSTONE_TLM data for sending info to Google services. (#328, David G. Young)
- New distance formula for Moto X Pro (#330, David G. Young)
- Adjust the BackgroundPowerSaver so it accepts any context (#355, Kristof Snyers)
- Add support for pre-Eddystone UriBeacon layout (#358, David G. Young)
Bug Fixes:
- Multiple consumers of the BeaconService will now each get a onBeaconServiceConnected() callback. (#340, Mateusz Sarzyński)
- Don't scan for bluetooth devices if permission has not been granted in Android 6. This prevents large number of exceptions in the log. (#327, Alex Urzhumtcev)
- Fix crash on beacon parsing comparison overrun (#324, David G. Young)
Bug Fixes:
- Stopping and starting monitoring disables scans (#317, David G. Young)
Enhancements:
- Adds hardware accelerated detection of Eddystone frames in the background on Android 5+ (#314, David G. Young)
- Provides ability to forward BLE scan callbacks for non-beacon advertisements (#267, Paul Peavyhouse)
Bug Fixes:
- Fix rescheduling of alarms in the distant future so they don't inadvertently go off right away (#312, Mateusz Sarzyński)
- Only request
ACCESS_COARSE_LOCATION
permission on Android M (#296, Henning Dodenhof)
Bug Fixes:
- Allow Regions to match beacons with fewer identifiers if the extra region identifiers are null. This allows matching Eddystone-UID and Eddystone-URL beacon with the default Region with three null identifiers. This started failing in version 2.6. (#295, David G. Young)
- Declare the
ACCESS_COARSE_LOCATION
permission in the manifest since it is required for Android 6.0. This is helpful to keep beacon detection working on Android 6.0 for apps that don't explicitly declare this in their own manifest. (#295, David G. Young)
Enhancements:
- Make region exit period configuration with a default of ten seconds (#283, Alex Urzhumtcev)
- When scanning in Background on Android 5+, do a full scan without filters during the main scan period (default for 10 seconds once every 5 minutes) in case scan filters are unavailable (#293, David G. Young)
- Common open-source BeaconParser layouts are defined as constants on BeaconParser (Commit 0101970010, David G. Young)
- Bluetooth address is now a field on Region, offering the option of monitoring and ranging for all beacon transmissions from a known device's MAC Address (#254, David G. Young)
- Target SDK bumped to 23 for Android 6.0 (#293, David G. Young)
Bug Fixes:
- Fix potential
ConcurrentModificationException
with distance calculation (#245, Dawid Drozd) - Fix potential
NullPointerException
inBeacon#hashCode
(#249, Sam Yang) - Switch BeaconParsers list to be a
CopyOnWriteArrayList
to avoidUnsupportedOperationException
changing list after starting scanning. (#290, Matthew Michihara) - Fix crash when region has more identifiers than beacon (#252, David G. Young)
- Fix bugs with compressing Eddystone-URL to bytes and back (#263, Michael Harper)