Others

Fix JavaScript Geolocation in the SharePoint iOS App

Chanuka GeekiyanageChanuka Geekiyanage Nov 20, 2026 868 views

Question details

The user needs to determine why JavaScript geolocation does not work in the SharePoint iOS app.

Fix JavaScript Geolocation in the SharePoint iOS App
Product
SharePoint iOS app
Device & OS
iOS
Scenario
A SharePoint page uses the JavaScript geolocation API to request the device's location.
Observed behavior
The geolocation request does not work as expected inside the SharePoint iOS app.
Before you start

Record your iOS and SharePoint app versions, and identify the HTTPS page and JavaScript code that request location. Make sure you can open the same page in Safari for comparison.

Solution 1Recommended

Compare Location Permissions and Test the Page in Safari

Use this check to distinguish a page or permission issue from behavior specific to the SharePoint app.

1
Check iOS Location Services

Open Settings > Privacy & Security > Location Services and make sure Location Services is enabled. If SharePoint appears in the app list, check its location permission.

2
Test the HTTPS page in Safari

Open the same SharePoint page in Safari, sign in if prompted, and trigger the location request. Allow location access when Safari asks.

3
Capture the geolocation error

Add or inspect the error callback in navigator.geolocation.getCurrentPosition and record the error code and message when you trigger the request in each app.

4
Compare the results

Compare the Safari and SharePoint app results, including any permission prompts and error messages. If Safari succeeds but the SharePoint app fails, include that distinction when requesting support.

Compare Location Permissions and Test the Page in Safari
App behavior can differ: A successful Safari test does not guarantee that the same geolocation request will work inside the SharePoint app.
Free Microsoft Office alternative

Work with Office Documents in WPS Office

WPS Office is a free, lightweight alternative for working with Office documents in a familiar interface. Its format support makes moving everyday files easier, but it does not fix geolocation behavior in the SharePoint iOS app.

Create and edit documents with a familiar Office-style interface.Open and edit compatible Microsoft Office formats, including DOCX, XLSX, and PPTX.Use a lightweight office suite for everyday document work.Work with Office files separately from SharePoint app geolocation troubleshooting.
microsoft office alternative - wps office

Frequently Asked Questions

Why should I test the SharePoint page in Safari?

Open the same HTTPS page in Safari and trigger the location request. If it works there but fails in the SharePoint app, that comparison can help identify app-specific behavior.

Where can I check location permission for SharePoint on iOS?

Go to Settings > Privacy & Security > Location Services. If SharePoint is listed, select it to review its permission.

How can I find out why the location request failed?

Use the error callback for navigator.geolocation.getCurrentPosition and record its error code and message. Include both when asking for developer support.

What should I include in a SharePoint support question?

Include the iOS and SharePoint app versions, location permission settings, relevant JavaScript, error details, reproduction steps, and results from the same page in Safari.