abi_beacon 0.1.0
abi_beacon: ^0.1.0 copied to clipboard
Android iBeacon background monitoring with a resilient foreground service, OEM manufacturer detection, and battery/permission state management.
0.1.0 #
Initial release.
Features #
- Background iBeacon monitoring via Android foreground service, resilient to app close and Android Doze
- Region detection —
EntryEvent/ExitEventfor UUID-based iBeacon regions - Continuous ranging —
RangeEventwith RSSI and estimated distance per beacon per cycle - Sealed
BeaconEventstream — type-safe Dart 3 pattern matching for all event subtypes BeaconConfig— configurable UUID, optional major/minor filter, scan period, exit period, and foreground notification content- OEM detection — identifies 9 manufacturer families (Xiaomi, Huawei, Honor, Samsung, OnePlus, OPPO, Realme, Vivo, ASUS) via
OemFamilywithisAggressiveflag - Deep-link to OEM settings —
openOemSetting(OemSettingType)for autostart, battery saver, protected apps, and app details screens - Runtime permission management —
checkPermissions()/requestPermissions()with per-permissionPermissionStatustracking - Battery & power state queries — Doze exemption, global power save mode, and location services state
MonitoringStatus— point-in-time snapshot of service state, region state, last event time, and nearest beacon