.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 GPS bridge gives the page permissions, the current and last position, and a listener whose readings arrive as gps.reading events and the gps native call while a page is open. The motion bridge, in the same package, reports walking, running, cycling, driving or stationary, and the geocoding bridge turns a position into an address. Both are backed by Shiny.Gps.
GPS works on Android, iOS, Mac Catalyst, macOS (AppKit), Windows and Linux; motion activity on Android, iOS and Mac Catalyst. Everywhere else they answer 501. For the page’s own position, navigator.geolocation with AllowWebPermissions(WebAppWebPermissions.Geolocation) works on every head except Linux, and needs no bridge — see Hosting.
On the maui-labs macOS (AppKit) head, the GPS bridge runs on Shiny.Gps’ CoreLocation implementation. Add
NSLocationUsageDescription to Info.plist, and the com.apple.security.personal-information.location entitlement when
the app is sandboxed. A Mac app isn’t suspended, so every listener mode keeps delivering readings.
On the Linux (GTK4) head, AddGpsBridge() registers GeoClue2 through Shiny.Gps.Linux, which the bridge package brings
with it. GeoClue’s agent (GNOME’s location setting or the location portal) decides access and remembers its answer by the
app’s desktop id, which defaults to the entry assembly’s name. To set it to your .desktop file’s name, register GPS
yourself before the bridge. The bridge keeps a GPS manager the app registered first:
builder.Services.AddLinuxGps(o => o.DesktopId ="com.mycompany.myapp");// does nothing off Linux
gps/status answers notSupported when GeoClue isn’t installed, and unknown until the page has asked with gps/access.
See Shiny GPS for how GeoClue maps accuracy and background modes.
Walking, running, cycling, driving or stationary, from the OS’s activity recognition.
There’s no history, only the latest reading and live ones. It ships in Shiny.AppDeviceBridge.Gps, but AddGpsBridge() doesn’t include it,
because it needs its own setup: NSMotionUsageDescription on iOS (the permission request crashes without it),
and ACTIVITY_RECOGNITION with Google Play Services on Android. Other platforms return 501.
GPS and motion listeners keep running without a page, but readings only reach the web app while a page is open. To log readings with the app in the background, register the app’s own Shiny GPS delegate (services.AddGps<TripGpsDelegate>()) in the MAUI app — see Native Calls & Background.
The addresses at a position, from the platform geocoder: MapKit / CoreLocation on iOS, Mac Catalyst and macOS, and
android.location.Geocoder on Android. Windows, Linux and Android devices without a geocoding backend (typically
no Google Play services) use OpenStreetMap’s Nominatim instead, so it works on every platform. It needs network access but
no location permission, which is why AddGpsBridge() doesn’t include it: add AddGeocodingBridge() when you want it.
The public Nominatim server allows one request a second and asks for a User-Agent that identifies your app; it defaults to
your entry assembly’s name and version. To use your own server, or another User-Agent, register the geocoder first, and
the bridge keeps it:
GPS: permission, the last and current position, and a listener whose readings arrive as events. Android, iOS, Mac Catalyst and Windows; elsewhere every call fails with 501.
Starts listening; readings arrive through onReading, and in the background to the web app's gps handler. Fails with 409 without permission or while another listener runs.
Motion activity: walking, running, cycling, driving or stationary, as the OS's activity recognition reports it. Android, iOS and Mac Catalyst; elsewhere every call fails with 501. There is no history, only the latest reading and live ones.
Reverse geocoding: the addresses at a position, from the platform geocoder (MapKit / CoreLocation on iOS and Mac Catalyst, android.location.Geocoder on Android) or, on Windows, Linux, macOS and Android devices without a geocoding backend, OpenStreetMap's Nominatim. It needs network access but no location permission.
The placemarks at a position, most relevant first — empty when the geocoder found nothing. Fails with 400 for a position off the map and 503 when the platform geocoder could not answer (typically no network).