shiny-locations

Enable GPS tracking and geofence monitoring in .NET MAUI apps.

152|15|Updated Oct 6, 2022
One-click install
npx skills add https://github.com/shinyorg/templates --skill shiny-locations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shiny-locations
Source: https://github.com/shinyorg/templates/tree/main/ProjectTemplates/ShinyApp/skills/shiny-locations
Command: npx skills add https://github.com/shinyorg/templates --skill shiny-locations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GPS tracking and geofence monitoring for .NET MAUI, iOS, and Android applications with full foreground and background support.

Core Features & Use Cases

  • Track device GPS position (foreground or background)
  • Monitor geofence regions (enter/exit events)
  • Calculate distances between positions
  • Request location permissions
  • Implement background location delegates
  • Use DI to inject IGpsManager and IGeofenceManager
  • Employ Position and Distance types for calculations

Quick Start

Register GPS and Geofencing services in MauiProgram.cs, request location access, and start listening for readings.

Frequently Asked Questions about shiny-locations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track GPS position in the background for a .NET MAUI app?

Background GPS tracking in .NET MAUI is enabled by using Shiny.Locations to register IGpsManager with dependency injection, request location permissions, and start listening for foreground or background position updates.

What is geofence monitoring and how does it work in cross-platform .NET MAUI apps?

Geofence monitoring in .NET MAUI tracks when a device enters or exits defined regions using GeofenceRegion types, triggering background delegates to handle events and calculate distances between positions on iOS and Android.

Can I use Shiny.Locations for geofence events on both iOS and Android?

Yes, Shiny.Locations supports cross-platform .NET MAUI apps on both iOS and Android, providing extension methods and delegates to register permissions and monitor geofence enter and exit events.

How do I register location permissions and services in MauiProgram.cs?

Register location permissions and services in MauiProgram.cs by configuring dependency injection for IGpsManager and IGeofenceManager, then use GpsRequest to request location access and start listening for GPS readings.

Does GPS tracking in .NET MAUI support calculating distances between positions?

Yes, GPS tracking with Shiny.Locations supports distance calculations between positions using the Position and Distance types, allowing you to compute distances for cross-platform .NET MAUI location updates.

Why is my .NET MAUI background location delegate not firing GPS updates?

Background location delegates fail to fire GPS updates when location permissions are not fully registered or GpsRequest is not properly configured in MauiProgram.cs to start listening for readings on iOS and Android.