Answer the question
In order to leave comments, you need to log in
How to find out the permissions issued by the user (for geolocation)?
I need to get the position of the user (navigator.geolocation.getCurrentPosition)
But first I need to get the permission. Can you tell me how can I know that I have received this permission?
Answer the question
In order to leave comments, you need to log in
navigator.geolocation.getCurrentPosition(
function(){
// Дали добро, делаем все что нужно
},
function(){
// Ошибка. В т.ч. если отказали в определении местоположения.
}
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question