Forum Xamarin.Forms

xamarin Plugin for Permission not working

Hi ,

I am trying to get my phones latitude and longitude in xamarin forms pcl using GeoLocation plugin
when all the permissions are granted its working fine
but when I manually remove the Permission for Location in App permission(Testing on real device-Moto g5 s+)
the app crashes..
The RequestPermissionsAsync is not requesting for any permission.

the result of the method is "Id = 1, Status = WaitingForActivation, Method = {null}"
what should be done?

Best Answer


  • Ahsan_SiddiqueAhsan_Siddique PKMember ✭✭✭✭

    Why are you removing permissions ?? If you want install your app on real device then you must need to grant permission to device. Granting permission is compulsory for creating APK or test on real device. :)

  • It was just a test scenario. In case the user has removed the permissions
    In that case the App should ask to provide the required permissions right?

  • If it's not obvious: The user may be using an Android privacy app/service/rom (e.g. LineageOS) which lets them turn it and/or other permissions off (or at least block then) after they've been granted.

Sign In or Register to comment.