I have a chrome app with permissions set one of which is geolocation. It have a sandbox index.html I want to get user location from that index.html. Is there any way I can get geolocation from that page.
function success(position){
}
function error(){
console.log('unable to track user location now')
}
var id = navigator.geolocation.watchPosition(success, error, options);
gives error user denied location. I did not see pop up this page is requestiong geolocation permisison