Summary
In this chapter, we built an app for iOS, Mac Catalyst, and Android that tracked the location of a user. When we built the app, we learned how to use maps in .NET MAUI and how to use location tracking when it’s running in the background. We also learned how to extend .NET MAUI with custom controls. With this knowledge, we can create applications that perform other tasks in the background. We also learned how to extend most controls in .NET MAUI.
Here are some ways you could extend this app even further:
- Right now, the app updates the map location when the app resumes. How could you update the map when the location changes?
- Add a view that lists all locations from the database. Allow the user to remove a location from the list.
The next project will be a weather app. In the next chapter, we will use an existing weather service API to retrieve weather data and then display that data in the app.