I am using jquery-ui-maps and HTML5 geolocation to show to the user a list of locations and I need to leverage the user's geolocation.
So, here is the use case,
I believe I have narrowed it down to being a Phonegap issue where the GPS permissions are initialized at app load and never reevaluated.
My question is, can GPS be enabled during the runtime of the application or does Phonegap require an app reload to use the GPS?
Phonegap does support realtime update of your GPS.
Here is a direct link:
http://docs.phonegap.com/en/3.1.0/cordova_geolocation_geolocation.md.html#geolocation.watchPosition
In general its called "watch position", and you can set the refresh timer yourself.
Regarding enabling the GPS during runtime.
Try just to call navigator.geolocation.watchPosition()
.
Remember to grant access to geolocation on your config.xml as well, but I guess you know that ;)
I hope it helped.