geolocation in the embedded app iframe?

Solved
Highlighted
New Member
3 0 0

Hi everyone!

I am developing an app for merchants that, so far, runs in the standard embedded app iframe on the merchant's store backend. This app needs to do geolocation; however, the iframe needs to allow it. Currently Shopify's app iframe is not permitting geolocation. I didn't see anything location related when requesting permission, so I'm wondering if there is something further that I am missing. Is there something that the app needs to request on installation, to permit geolocation in the embedded app iframe? This has been puzzling, so thanks in advance for any information that anyone may have!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 165

This is an accepted solution.

Hey @zahna 

An embedded app wont be able to geolocate the user - you'll need to use a standalone app.

If you're just after store locations, try the locations endpoint.

1 Like
Highlighted
New Member
3 0 0

Thanks for the reply! That was my suspicion. Is there any chance that Shopify will allow geolocation in the embedded app iframe?

0 Likes