How do I add this function? (turn on location)

images

How to get this functionality in my app, I am using geolocation element,
Also If this is not possible then how can I open the location settings from my app ?

Use the ActivityStarter.

will elicit your device Settings Location screen

LocationSettings

which displays differently depending on your Android operating system.

2 Likes

Thanks for the solution,
But how can we open my apps permission settings from a click of button ?

Say user has denied permission location for my app so now my app shows a button which will take him to my app's permission settings page, now the user can give the permissions required.

Thanks,,

Perhaps this is what you need to know regarding permission intents

or

https://developer.android.com/about/versions/11/privacy/permissions

or perhaps

https://developer.android.com/training/location/permissions

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.