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