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?
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With