Fix JavaScript Geolocation in the SharePoint iOS App
Question details
The user needs to determine why JavaScript geolocation does not work 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.
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.
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.
Open Settings > Privacy & Security > Location Services and make sure Location Services is enabled. If SharePoint appears in the app list, check its location permission.
Open the same SharePoint page in Safari, sign in if prompted, and trigger the location request. Allow location access when Safari asks.
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.
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.

Request SharePoint Developer Support
Use this option if the app-specific behavior remains unresolved after testing.
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.

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.




