Skip to content

@capgo/capacitor-ibeacon

Capacitor iBeacon Plugin - Proximity detection and beacon region monitoring.

Capacitor iBeacon Plugin - Proximity detection and beacon region monitoring.

  • startMonitoringForRegion - Start monitoring for a beacon region. Triggers events when entering/exiting the region.
  • stopMonitoringForRegion - Stop monitoring for a beacon region.
  • startRangingBeaconsInRegion - Start ranging beacons in a region. Provides continuous distance updates.
  • stopRangingBeaconsInRegion - Stop ranging beacons in a region.
MethodDescription
startMonitoringForRegionStart monitoring for a beacon region. Triggers events when entering/exiting the region.
stopMonitoringForRegionStop monitoring for a beacon region.
startRangingBeaconsInRegionStart ranging beacons in a region. Provides continuous distance updates.
stopRangingBeaconsInRegionStop ranging beacons in a region.
startAdvertisingStart advertising the device as an iBeacon (iOS only).
stopAdvertisingStop advertising the device as an iBeacon (iOS only).
requestWhenInUseAuthorizationRequest “When In Use” location authorization (required for ranging/monitoring).
requestAlwaysAuthorizationRequest “Always” location authorization (required for background monitoring).
getAuthorizationStatusGet current location authorization status.
isBluetoothEnabledCheck if Bluetooth is enabled on the device.
isRangingAvailableCheck if ranging is available on the device.
enableARMAFilterEnable ARMA filtering for distance calculations (Android only).
getPluginVersionGet the native Capacitor plugin version.
enableBackgroundModeEnable or disable background beacon scanning mode (Android only). This enables a foreground service for reliable background beacon detection. Must be called after requesting “Always” location authorization.
setBackgroundScanPeriodConfigure background scan periods (Android only). Controls how often and how long the device scans for beacons when in background.
addListenerListen for beacon ranging events.
addListenerListen for region enter events.
addListenerListen for region exit events.
addListenerListen for region state determination events.
addListenerListen for monitoring failure events.
removeAllListenersRemove all listeners for this plugin.

This reference is synced from src/definitions.ts in capacitor-ibeacon.