For Android,
- fix for Android 8.0+ using startForeground and startForegroundService
- update background mode documentation. Wait for beaconServiceConnected event before startMonitoring beacons
- For iOS, adds logic to queue authorizationStatusDidChange events
- For iOS, return didDetermine, didEnter, didExit, etc event only for Beacon (i.e. CLBeaconRegion class)
- For Android, adds API (i) init() and stop() for init / stop notificaiton channel on demand
Based on 1.0.7, updated the following
- changes made in https://www.npmjs.com/package/@nois/react-native-beacons-manager
- Android: add headless task to support beaocn monitoring at backgorund and after device reboot
- need to add a file
BeaconMonitorTask.js
, default at the same level of index.js of your project, for handling the headless task (default transition task name:beacons-monitor-transition
)
- need to add a file
- iOS: add startObserving and queuedRegionEvents to queue events before listener is ready
-
iOS: add
allowsBackgroundLocationUpdates(allow: boolean)
to ensure monitoring even if app is killed or in background -
PR #45 thank you to @stoneman1
-
PR #54 thank you to @rostislav-simonik
-
PR #46 thank you to @ashemah
-
PR #58 thank you to @eurobob
-
pR #114 thank you to @yohang
- BEWARE: breaking change = drop of
DeviceEventEmitter
in favor ofBeacons.BeaconsEventEmitter
(see BeaconsDemo example project)
// before 1.1.0 (or until 1.0.7): DeviceEventEmitter.addListener() // simply becomes (for both iOS and Android) Beacons.BeaconsEventEmitter.addListener()
- BEWARE: breaking change = drop of
-
update iOS and Android BeaconsDemo example project
-
update samples (TODO)
-
PR #45 thank you to @stoneman1 -
PR #54 thank you to @rostislav-simonik -
PR #46 thank you to @ashemah -
PR #58 thank you to @eurobobBEWARE: breaking change = drop ofDeviceEventEmitter
in favor ofBeacons.BeaconsEventEmitter
(see BeaconsDemo example project)
// before 1.0.8 (or until 1.0.7): DeviceEventEmitter.addListener() // simply becomes (for both iOS and Android) Beacons.BeaconsEventEmitter.addListener()
-
update iOS and Android BeaconsDemo example project -
update samples (TODO)
- improve typescript types
- remove previous non flow typed libs versions (these before 1.0.7)
-
iOS:
startRangingBeaconsInRegion
andstartMonitoringForRegion
return promises like android -
android:
startRangingBeaconsInRegion
andstartMonitoringForRegion
accept an object like iOS and other methods. NOTE: it won't prevent from accepting current parameters:regionId: string
andbeaconUUID: string
: not to break existing. -
add typescript types
-
fix #40
- fix #38
- improved documentation
- when you want to understand or something's wrong please have a look at this detailed documentation + code sample
- fix
React Native 0.47
android breaking change:Remove unused createJSModules
- same as v1.0.3 (npm publish nightmare...)
- add iOS event
authorizationStatusDidChange
to documentation (=events table in README) - add new layouts:
- altBeacon
- eddystone (uid, tlm, url)
- PR #13
- fixes
- iOS monitoring
- fix android monitoring issues when minor and/or minor where null
- add monitoring in example
- README and config fixes
- Initial release