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 !