In our previous chapter, we looked at how we can apply what we already know about the MVVM design pattern, and how we can navigate between our ViewModels, by creating a navigation service C# class that acts as the navigation service for our app, using the Xamarin.FormsDependencyService
class.
In this chapter, you'll learn how to go about incorporating platform-specific features within the TrackMyWalks
app, depending on the mobile platform. You'll learn how to create a C# class, which will act as the Location Service for our app, as well as creating a IWalkLocationService
interface class file, which will include a number of class methods that both our iOS and Android platforms will inherit, and, in turn, update the content pages to bind with the ViewModels to allow location-based information between these Views to happen.
We will also be covering how to properly perform location updates while the application is either in the foreground...