Biribu
Biribu

Reputation: 3833

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?

Upvotes: 3

Views: 1246

Answers (1)

George Artemiou
George Artemiou

Reputation: 3176

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!

Upvotes: 1

Related Questions