Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 81910

Location permission dialog hidden behind view

$
0
0

On my emulator when asking for permission to read GPS location, the permission dialog is not showing. I found that for some reason this dialog is hidden behind the view..

I wasn't able to find a solution for this other than "wait for a second before asking" which is not really a solution in my mind.

In ContentPage OnAppearing:

protected override async void OnAppearing()
{
await viewModel.ExecuteGetLocation();
}

In ViewModel:

public async Task ExecuteGetLocation()
{
var currentLocation = await Geolocation.GetLocationAsync();
}

Any idea why this happens and what I can do to fix it?

Thank you in advance


Viewing all articles
Browse latest Browse all 81910

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>