Vyhľadajte odpoveď

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

'change' event for geolocator permission not triggered on change through permissions dialog

  • Žiadne odpovede
  • 1 má tento problém
  • 11 zobrazení
more options


      name: 'geolocation'

}).then(function(result) {

      result.onchange = function() {


Using the above code, when the location permission dialog shows up in the browser and the value is changed from 'Block'/'Ask by default' to 'Allow', the 'onchange' function or the 'change' event aren't triggered. Essentially when this permission is set by the user using this dialog, I would like to show a message to the user asking them to enable their location to proceed, if blocked.

Priložené obrázky

Ak chcete pridať odpoveď, musíte sa prihlásiť k svojmu účtu. Ak účet doteraz nemáte, položte novú otázku.