Applications these days provide features to get locations like we implemented device location plugin to get location coordinates when a user clicks a button, But what if we want to get location updates after fixed intervals of time. To track location we can’t always keep an application open, In that case, we need to track location when the application is in the background.
UPDATED(26/03/19) for latest CLI 4.12.0
In this post, we will implement Geolocation and Geocoder plugins in Ionic 3 application. Using Geolocation service we can get Lattitude, Longitude, Accuracy of location, Speed, Altitude etc of the device. After that Latitude and Longitude can be used to get Addresses available on these coordinates. To fetch address from coordinates of the device, we use Geocoder service.