I only want the Geolocation to track the user when the app is open. However, whenever I ask for the position it asks the user "Allow "MyApp" to access your location even when you are not using the app?
and this asked for the RIGHT permission. This is because it is using cordova-1.7.0 I think.
Here is my code, which is the SAME code in the Fitness tracker example app:
// Start tracking the User
watch_id = navigator.geolocation.watchPosition(
// Success
function(position){
alert('Hello World!');
},
// Error
function(error){
console.log(error);
},
// Settings
{ frequency: 3000, enableHighAccuracy: true });
Very confused, any ideas/help please?