Getting Started
Xamarin Essentials is great, but Shiny makes realtime background location updates a thing on Xamarin/MAUI based platform.
Setup
- Nuget
- Project File (csproj)
- MauiProgram.cs
- AndroidManifest.xml
- Apple Info.plist
- Apple PrivacyInfo.xcprivacy
Shiny.Locations | | |
Shiny.Hosting.Maui | | |
Starting/Stopping the GPS Service
Watching Movement in the Foreground
Observing in the background
First, create the delegate that implements IGpsDelegate
Next, let’s register that with your app builder/hosting/service collection
Lastly, last start it up
Samples