Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Geolocation on safari not working (no permission prompt)

I have a code that gets the geolocation of the user after they click a button and approve access to their geolocation.

For some reason that prompt is not given in safari (did test with multiple devices). There seems to be a standard "access denied" signal sent.

Information I find through google is contradictory.

Question: is it possible to get geolocation of a user with safari or does safari block this always?

like image 745
Justin Avatar asked Dec 01 '25 03:12

Justin


1 Answers

Make sure that Safari is on the list of apps in the Enable Location Services list in System Preferences.

Geolocation in Safari 9 always returning Position Unavailable

Also make sure that in the privacy tab, the "Deny without prompting" option is off. https://i.sstatic.net/X8itc.png