private async void OnMap(object sender, EventArgs args) { try { locationDialog = new LocationDialog(this); await PopupNavigation.Instance.PushAsync(locationDialog, true); } catch (Exception ex) { } }
public async void OnEnableLocation() { new GeolocationManager(this).TurnOnLocation(); //Subscribe to geolocation again if (locationDialog == null) { locationDialog = new LocationDialog(this); } await PopupNavigation.Instance.PushAsync(locationDialog, true); }