.NET MAUI Live Tracking same as delivery app

Bhuwan 1,246 Reputation points
2026-07-20T15:30:32.6533333+00:00

I am currently working on a School Bus Tracking application. I am integrating live location tracking from the bus's current location to its destination, but I am facing issues with implementing real-time tracking.

Could you please suggest the best approach for integrating live location tracking in a .NET MAUI application?

Currently, I am using the following packages:

  1. Microsoft.Maui.Controls.Maps
  2. Microsoft.AspNetCore.SignalR.Client

Any guidance or best practices for implementing real-time location updates would be greatly appreciated.

Developer technologies | .NET | .NET Multi-platform App UI

Answer accepted by question author
Nancy Vo (WICLOUD CORPORATION) 8,075 Reputation points Microsoft External Staff Moderator
2026-07-21T03:39:38.85+00:00

Hello @Bhuwan ,

Thanks for your question.

You can refer to these following steps:

  1. Get the bus's location by using Microsoft.Maui.Essentials → the Geolocation API to read GPS coordinates on a timer (for example, every 3–5 seconds). For tracking while the app is minimized, you may also need a foreground service on Android and background location mode on iOS, since MAUI does not provide this out of the box.
  2. Send the location to a server

On the driver side, use HubConnection.InvokeAsync("SendLocation", latitude, longitude) to push updates to your ASP.NET Core SignalR Hub. The hub then broadcasts the coordinates to all parents watching that bus using Clients.Group(busId).SendAsync("ReceiveLocation", ...).

For addition information, you can refer to ASP.NET Core SignalR .NET Client.

  1. Receive updates on the parent app by using connection.On<double, double>("ReceiveLocation", ...) to listen. When a new coordinate arrives, update the bus Pin position on the Map control. To avoid the pin "jumping," you can animate between the old and new coordinates over a short interval.
  2. Show the route

Microsoft.Maui.Controls.Maps supports Pins and Polylines, but it does not calculate driving routes. For an actual road path, you would need to call a routing service such as Google Directions API or Azure Maps Route API, then draw the returned points as a Polyline.

I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback. Thank you.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.