Enable Location

Hi everybody,

I’m wondering if there’s any way to force the App to ask the user to enable the device location service in case it’s off.
A good example is the Google Maps app:

Thanks,
Andrea

Hi Andrea,

I don’t think there is a ready solution for that, the current implementation asks the user to provide access to the necessary permission when it finds it fits best.

But you can take a look at the Permission request is implemented in fuselibs: around line 25 on Source/Fuse.GeoLocation/Android/AndroidLocationProvider.uno.

With that in mind, you could then adapt a similar approach to what is seen in this community project and make your own wrapper for the permission request.

Hope this helps!

Ok, I’ll take a look.

Thanks!