Geolocation API isn’t available in Excel for Web and Excel for Mac

Geolocation API isn’t available in Excel for Web and Excel for Mac
3

Upvotes

Upvote

 Apr 21 2023
0 Comments 
New

Geolocation API navigator.geolocation.getCurrentPosition doesn't work in Excel for Mac and in browsers. It works in Excel for Windows.

 

Your Environment:
Platform [PC desktop, Mac, iOS, Office on the web]: Mac, Office on the web
Host [Excel, Word, PowerPoint, etc.]: Excel
Browser (if using Office on the web): Chrome, Safari

 

Expected behavior:
A dialog should appear asking for permission to the user's location. If the user allows it, the add-in would be able to retrieve the user's location. This is how it currently works in Excel for Windows.

 

Current behavior:
It just returns an error, code 1, the message: User denied Geolocation

 

msftpic1.jpg