private void Start() { var timer = 10; _locationService.Start(timer); MessagingCenter.Subscribe <Position>(this, "LocationUpdate", async(location) => { Console.WriteLine("Hello from shared: " + location.Latitude + ", " + location.Longitude); await _apiService.UpdateLocation(location); int newTimer = 20; if (newTimer != timer) { _locationService.ChangeInterval(newTimer); timer = newTimer; } }); }