GPS enable on mobile app

Recently I’m working on a mobile project which using GPS. I’ve got a problem where i can alert client to enable their gps on my app. is there a way to do like alert msg and let them click any button to enable gps on there phone in meteor ?thanks in advance!
look like this pic.

AFAIK, this isn’t allowed due to security restrictions. There are hacks to be found on Stackoverflow that exploit a bug in some Android versions. But most apps I am aware of are not using this. Instead, they redirect the user to the GPS settings in the Android preferences and let him switch it on himself.

I already found this cordova plug in and its work.


1 Like

Good to know, thanks.