function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Angello Camacho DragoAngello Camacho Drago 

Geolocation has been disabled in this document by feature policy Salesforce1

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?
NagendraNagendra (Salesforce Developers) 
Hi Angello,

May I know if you're still having issues? This looks related to the Known Issue below which was supposedly recently fixed:
  • https://success.salesforce.com/issues_view?title=geolocation-and-camera-access-from-visualforce-no-longer-works-after-updating-chrome-to-v64&Id=a1p3A0000018Bjo
Please let us know if this helps.

Kindly mark this as solved if it's resolved.

Thanks,
Nagendra