Open Location Services in Android from Ionic App

Hi all.

Is there a way to redirect a user to Location Settings on a button click in an Ionic App?

Here is my research:

I installed the following plugin:

It allows the user to open a native Intent using JavaScript. It even allows for opening other android applications if you know their package name.

The problem I’m facing is what URL do I use for the url parameter in the code so that it opens the Location Services in Android? There are tons of examples on how to do it in Java though. My research suggests that it can’t be done with just plain JavaScript. Any thoughts?

hey did you got any solution??

Yeah. Take a look at this:

1 Like

Even i need this !!! thanks for the post :smile: but how to do it for ios ?