GeoLocation : ask to turn on GPS if it's not on

Hi

I’m trying to get user geo location using Fuse.Geolocation Library but it seems the library won’t be effective untill user turn GPS on

so i was wondering how this can be done using Fuse?

Hi Mohammed,

when you include GeoLocation in your Fuse app, it requests the required permissions on first app launch. Then, depending on if the users allows it or not, you will (or will not) have access to GPS data.

If you’re willing to trigger the permission request on demand, you will need to implement it in foreign code. Looking at how it’s done in fuselibs might be a good start.