.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
The region geofencing bridge monitors region sets with background GPS, with no OS limit on how many regions: which
state or province the device is in, which delivery zone, which store it is near. It’s backed by
Shiny.Geofencing.Regions. Each set tracks the one region the device is in, and
entering or leaving one reaches the page as regiongeofence.change while it is open. Work that must happen with the app in the background
belongs in the app’s own native code — see Native Calls & Background.
The sets are registered in C#. The page starts and stops monitoring and reads where the device is, but never defines
what is monitored.
Android, iOS and Mac Catalyst. Everywhere else every route answers 501.
Document sets need Shiny.Geofencing.Regions.DocumentDb and a SQLite document store you register, with each region
type’s geometry mapped (cfg.MapSpatialProperty). It also carries US states, Canadian provinces and their cities:
builder.Services.AddNorthAmericaSeeder();// once, when the app first starts
bridge.AddRegionGeofenceBridge(
cfg => cfg
.AddNorthAmericanRegions()// "regions": ids like US-CO, CA-ON
.AddNorthAmericanCities(withinMeters:25_000),// "cities": ids like US-CO-denver
o => o.RegionSerializerOptions = GeoJsonContext.Default.Options
);
Don’t also call AddRegionGeofencing — the bridge registers it, with WebAppRegionGeofenceDelegate as the delegate.
To handle changes in C# as well, subclass that delegate, call the base OnRegionChanged, and pass
o => o.UseDelegate<MyDelegate>().
const here =await regions.getCurrent();// one entry per set, from the last GPS reading
Moving straight from one region to another in the same set raises the exit first, then the entry. start answers 409
(geofence_refused) without background location. stop forgets which regions the device was in, so the next start
enters them again.
Each change and each current entry carries region: a geocoder set’s placemark, or the region object written through
RegionSerializerOptions — usually the document store’s own JsonSerializerOptions. A type with no metadata there is
left out (null) rather than reflected over, and so is an exit from a region the source can no longer describe.
Monitoring runs Shiny.Gps’ one listener. The GPS bridge drives that same listener, so a page
that stops it through /_bridge/gps/listener stops region geofencing too.
The region object — a document, or the placemark of a geocoder set. Null when its type has no JSON metadata in the bridge's serializer options, or for an exit the source can no longer describe.
The region object — a document, or the placemark of a geocoder set. Null when its type has no JSON metadata in the bridge's serializer options, or for an exit the source can no longer describe.