Open Location Services in Android from Ionic App


#1

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: https://github.com/InQBarna/WebIntent

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?


#2

hey did you got any solution??


#3

Yeah. Take a look at this: https://github.com/selahssea/Cordova-open-native-settings


#4

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