Hello everybody,
var a= nokia.device.load("geolocation");
works fine when the user permits the program to retrieve "geographic information" but when the user does not permit the program, it gives an "undefined" error. what i would like to do is the following, please help me:
if(the user permits to get "geographic information"){
var a = nokia.device.load("geolocation");
a.getCurrentPosition(...);
}
else{
alert("permission denied");
}

Reply With Quote

