amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
546 stars 346 forks source link

android application closes when map.MyLocationEnabled = true #618

Closed jocontacter closed 4 years ago

jocontacter commented 5 years ago

VERSIONS

PLATFORMS

ACTUAL BEHAVIOR

application closes without exceptions when i make map.IsShowingUser = true or map.MyLocationEnabled = true

HOW TO REPRODUCE

var status = await CrossPermissions.Current.CheckPermissionStatusAsync(Permission.Location);
if (status != PermissionStatus.Granted)
{
    var results = await CrossPermissions.Current.RequestPermissionsAsync(Permission.Location);
    if (results.ContainsKey(Permission.Location))
        status = results[Permission.Location];
}

if (status == PermissionStatus.Granted)
{
    map.IsShowingUser = true;
    // the same result:
    //map.MyLocationEnabled = true;
}
amay077 commented 4 years ago

Is there anyone has same issue?

Or do you have more detail information? > @jocontacter

jocontacter commented 4 years ago

Is there anyone has same issue?

Or do you have more detail information? > @jocontacter

I think it was just a coincidence.

amay077 commented 4 years ago

Okay I close it. 👍