I building an application and I need the user's location to finish his registration, but how do I do to make him allow? I mean, the pop up pops up and say "The system wants to access you location, do want to allow ?", if he/she allows, that's fine, but if he/she denies, I want re ask him, saying something like, you can't continue unless you allow us to get your location, and then re asks him. Because I know you can clean your location settings going to chorme settings and etc, but is there any way I can do it through javascript?
This is my function
function pegaPaisUser(){
navigator.geolocation.getCurrentPosition(addPaisToUser,localizacaoNegada);
}
function localizacaoNegada(erro){
pegaPaisUser();
console.log("HERE")
}[![my console][1]][1]