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

Ask user to turn on location and network in Xamarin Forms

$
0
0

Hello.

I am developing an app written in Xamarin.Forms (mainly for Android and iOS) with some services. In this services I need to request the location of the device and send them through the netowrk to request some data from a server.

My question here is the following:
How can I ask the user to turn on the location service and the network if they are not enabled ?

I am using the permissions plugin, connectivity plugin and geolocator plugin all developed by James Montemagmo. So far I searched for some snippets on this matter but I didn't find any suitable solution for my needs.
In my code I enabled the check for the location permission and the network permission and it works well either is it on or off, but I don;t know how can I ask the user to turn them on.

I want to make something like (if it's possible), or to make a request to user to turn them on separately.

Any help on this matter would be deeply appreciated.
Thanks in advance :# !


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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