.NET MAUI on the WebRun your MAUI app in the browser on WebAssembly - real DOM elements, no Blazor. Try the web sample and the .NET MAUI GalleryRun your MAUI app in the browser on WebAssembly - real DOM elements, no Blazor. Try the web sample and the .NET MAUI GalleryGet started
.NET MAUI on Apple TVNative UIKit views driven by the Siri Remote and the tvOS focus engineNative UIKit views driven by the Siri Remote and the tvOS focus engineGet started
Universal Hubs Hubs - The SignalR but with transports for Bluetooth, HTTP/Network, & Peer Nearby Connectivity - ULTRA Comms for your appsHubs - The SignalR but with transports for Bluetooth, HTTP/Network, & Peer Nearby Connectivity - ULTRA Comms for your appsLet's Communicate
Controls 3.0MAUI & Blazor NET11 SupportMAUI & Blazor NET11 Support
AddBeaconsBridge() registers all four features. To leave some out, pass BeaconFeatures flags: for
example AddBeaconsBridge(BeaconFeatures.Ranging | BeaconFeatures.Eddystone) skips monitoring’s background location and
broadcasting’s advertise permission. A feature left out answers 501. So does one the platform reports as NotSupported,
such as iBeacon ranging and monitoring on macOS, where CoreLocation has neither. GET beacons/status shows each
feature’s access.
Topic
Details
Ranging
POST beacons/ranging takes a region: identifier, uuid, and optionally major, then minor. Each beacon seen arrives as beacons.ranged, tagged with the region, with RSSI, an estimated distance and a proximity bucket. Listen first: without a listener it answers 409. Several regions can range at once, and all of them stop once nothing listens. Ranging is a foreground activity.
Monitoring
POST beacons/regions watches a region for enter and exit, in the background and across restarts. Transitions arrive as beacons.region while a page is open; with no page, handle them in the app’s own Shiny beacon delegate. Without permission it answers 409.
Eddystone
POST beacons/eddystone sends UID, URL, TLM and EID frames as beacons.eddystone, one flat shape with frameType saying which fields are set. It needs a listener too.
Broadcasting
POST beacons/broadcast/ibeacon, …/eddystone-uid or …/eddystone-url starts advertising and replaces any advertisement already running. A URL too long for an Eddystone-URL frame answers 400. Apple platforms stop the advertisement in the background.
Platform setup
Shiny.Beacons’. On iOS and Mac Catalyst: NSLocationWhenInUseUsageDescription for ranging, NSLocationAlwaysAndWhenInUseUsageDescription for monitoring, and NSBluetoothAlwaysUsageDescription for Eddystone and broadcasting. On Android: BLUETOOTH_SCAN and BLUETOOTH_CONNECT (location before Android 12), BLUETOOTH_ADVERTISE to broadcast, and FOREGROUND_SERVICE_CONNECTED_DEVICE with POST_NOTIFICATIONS to monitor. Linux answers 501.
Ask for the feature you need, listen, then start ranging a region. Ranging reports every beacon in range about once
a second while the page is open; monitoring reports entering and leaving a region, in the background too, though it reaches the web app only while a
page is open. React to it with the app closed from the app’s own Shiny beacon delegate — see Native Calls & Background.
Starts ranging a region; readings arrive through onBeacon, so listen first: without a listener it fails with 409. Several regions can be ranged at once. Ranging is a foreground activity, and it stops once nothing listens to it.
Starts monitoring a region; transitions arrive through onRegion while a page is open, and to the web app's beacon handler otherwise. Fails with 409 without permission.
Starts scanning for Eddystone frames; they arrive through onEddystone, so listen first: without a listener it fails with 409. The scan stops once nothing listens to it.
An Eddystone frame. Which fields are set depends on frameType: Uid has namespace and instance, Url has url, Eid has ephemeralId, and those three have txPower, distance and proximity. Tlm is the beacon's telemetry.