Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Asking permission for location when a specific page is opened (PCL)

$
0
0

I have my permission request setup in Android's mainactivity, and if you have location disabled and open the app, it will request location. It's a bit tedious and I'd like it to only request for permission when you open a specific content page.

I have my xaml content page in my PCL. Right now, in my Android mainactivity, I put await GetPermissionsAsync in OnCreate().


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>