It seems the default behavior for:
navigator.geolocation.getCurrentPosition((position) => {
// doSomethingWithPoistion
})
makes it so if it's denied. It is denied for all subsequent calls. Is there a way so that when the user hits block on the popup, it's only for this immediate interaction?
That is to say I'm using location services on load of a page. I also have a button that prompts the same functionality. The button doesn't work if the user denies locations services(just get another error callback).
Is there a way to make it so on load denials are only for this callback and doesn't set it to continue to deny on subsequent getCurrentPosition
calls?