Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activate gps prompt phonegap app

I searched and found that programming on android is possible to make a prompt to appear for turn gps on in an app. Using this: android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS

I want to do the same for a phonegap application but I haven't found anything yet. Just how to make a notification window but not the gps prompt.

Is there a way to do it?

like image 541
Biribu Avatar asked Jan 26 '26 12:01

Biribu


1 Answers

You will have to write a plugin that calls native Java code you want to execute. Please read this on how to do that and the relevant phonegap documentation here.

Hope it helps!

like image 185
George Artemiou Avatar answered Jan 28 '26 02:01

George Artemiou



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!