ContextCompat.CheckSelfPermission .NET Standard 2.0

1

I'm breaking my head and looking for an example code that asks permission to some recourse (camera, GPS), and everyone I meet makes use of ContextCompat.CheckSelfPermission, however the Xamarin.Android.Support.Compat package is incompatible with .NET Standard 2.0.

Does anyone have any tips on how to request runtime permissions in this case?

Even the link article below seems to use this package.

Att.

Leonardo Freitag

    
asked by anonymous 30.09.2018 / 00:57

1 answer

0

I was able to understand the process.

Just build the code in MainActivity.cs and things worked out.

Here's an interesting link for anyone trying to understand this issue of access permissions at runtime.

link

It is in English, but within the context it is very easy to companion.

Att.

Leonardo Freitag

    
30.09.2018 / 01:52