Location - Manage and request the activation of the device's GPS or location services via Google Play Services

Location
Manage and request the activation of the device's GPS or location services via Google Play Services.

Displays the native Google Play Services system dialog that asks the user to enable location with a single tap (without having to manually send them to the phone's Settings screen).


IsLocationEnabled

Check if the device's location or GPS is currently enabled.

component_method (3)


OpenLocationSystemDialog

Displays the pop-up dialog to enable GPS.

component_method (2)


LocationEnabled

It activates when location services are correctly enabled or are already turned on.


LocationDenied

It activates when the user rejects or cancels the request to enable location services.


LocationError

It is triggered when an error occurs while requesting location settings or checking Google Play services.


v1.0 September 01, 2026.

Location.aia (277.5 KB)

joejsanz.joedevlocation.aix (274.6 KB)


JDK: 17
Minimum API Level: 14
Bundled Dependency: com.google.android.gms:play-services-location:21.0.1
Auto-Injected Permissions: ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION
Updated On: 2026-09-01T07:00:00Z

Built using: FAST-CLI v7.0.0-premium


Support free development

  • This extension is and will remain free. If you have found it useful and wish to support my work so I can continue creating and updating components like this one, any voluntary contribution is greatly appreciated:

Donar con PayPal


Thanks.

3 Likes

Good stuff.

Now, I do not have google play services/play store installed, can you make one for that ? :wink:

1 Like

Call the dialog without Google services?

I think that's a bit difficult; I'll look into it.

2 Likes

Thank you for your contribution!

This will not be possible as it uses the Google Play Services Location Settings API

But as fallback you just could open the location settings for the user to enable gps manually

Btw. I would rename method RequestLocationSettings to OpenLocationSystemDialog

Taifun

1 Like

Thanks Taifun, the function name has been corrected.

1 Like

Can you please also include location sensor with lat and lang, geocoding, gps stastus? So that all eelated functions, calls and events will be in a single extension.

showing this, testing using companion

I forgot to mention that it only works with the APK installed.

1 Like