I have a Visualforce page enabled for Lightning, which has one button that gets the geolocation in coordinates and shows the location in a Google map embedded in the page.

This was working until last Friday, but now I get this error:

Geolocation has been disabled in this document by feature policy

When I call the method navigator.geolocation.getCurrentPosition in the browser, it worked fine. I also checked the permissions in the mobile.

Is this feature no longer supported? If not, is there any workaround?

  • 1
    I tweaked your post for you a bit. In the future, please try to be more specific about your questions than asking "can anyone help me?"
    – Adrian Larson
    Feb 6, 2018 at 23:49


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.