Skip to content Skip to sidebar Skip to footer

My App Is Terminating Due To Permission Issue On Android

I'm writing this code for getting gps location, I've marked ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION on Android properties and I also confirmed if it was in AndroidManifest.

Solution 1:

Starting with Android Marshmallow, you need to request permissions from the user as-well-as marking it in the manifest. Doing this will show the user a prompt asking to access the resource (location in this case) that they can either allow or deny. You should have code in place handling both situations.

Xamarin provides some documentation on how to do this here.

EDIT: Newer documentation is also available from Microsoft

Post a Comment for "My App Is Terminating Due To Permission Issue On Android"