Skip to content

@capgo/capacitor-uwb

Measure precise distance and direction between UWB-capable devices using native iOS and Android ranging APIs.

Capacitor plugin for Ultra-Wideband (UWB) ranging on iOS and Android.

iOS Nearby Interaction

Exchange NIDiscoveryToken values and run peer sessions with Apple’s Nearby Interaction framework.

Android Jetpack UWB

Start controller and controlee sessions with androidx.core.uwb ranging parameters.

Live Ranging Events

Listen for distance, direction, and session lifecycle updates from JavaScript.

Out-of-Band Exchange

Bring your own transport for token and parameter exchange, such as BLE, MultipeerConnectivity, or a backend.

  • isAvailable - Check whether UWB is supported and currently available.
  • getDiscoveryToken - Get the local Nearby Interaction discovery token on iOS.
  • startPeerSession - Start an iOS peer ranging session.
  • startControllerSession - Start an Android controller session and return shareable parameters.
  • startControleeSession - Start an Android controlee session from controller parameters.
  • stopSession - Stop the active ranging session.
MethodDescription
isAvailableCheck whether UWB is supported and currently available on the device.
getDiscoveryTokenGet the local Nearby Interaction discovery token on iOS.
startPeerSessionStart a Nearby Interaction peer session on iOS.
startControllerSessionStart an Android UWB controller session and return shareable parameters.
startControleeSessionStart an Android UWB controlee session with parameters from the controller.
stopSessionStop the active UWB ranging session.
addListenerListen for rangingUpdate and sessionStateChanged events.
getPluginVersionGet the current native plugin version.

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