A developer is attempting to implement mobile app deep linking for a Shopify Theme store, which requires configuring /.well-known/assetlinks.json (Android) and /.well-known/apple-app-site-association (iOS) files.
Core Problem:
Shopify does not allow direct access to or editing of .well-known/ files, making native deep linking configuration impossible on Shopify domains.
Confirmed Solution:
Host the required .well-known/ files on an external server (Firebase, Netlify, Vercel)
I am trying to implement deep linking in my mobile apps, which use Shopify Theme stores. To do this, it is necessary to properly configure the files located at /.well-known/assetlinks.json and /.well-known/apple-app-site-association.
Is it possible to do that on Shopify? I’ve read a lot of documentation and threads here but haven’t found a proper solution. That’s why I have a few questions. If you know the answer to any of them, please don’t hesitate to share it with me
In order to properly configure the iOS/Android Buy SDK, is it required that the store is not password-protected?
Is it possible to edit the assetlinks.json and apple-app-site-association files generated when using the Buy SDKs?
Is it possible to successfully redirect the assetlinks.json and apple-app-site-association files using the URL redirect feature in the Shopify admin panel?
Have you managed to solve any of the above issues in a different way? If so, how did you do it?
Then, use that subdomain for deep linking in your app.
And Yes, your store must be public (not password protected) for deep links and SDKs to work properly.
Shopify URL redirects won’t work for .well-known/ paths.
Thank you, @topnewyork for the answer. Just to be clear: there’s no way to enable deep linking for URLs like mzielu-store.myshopify.com/something, right? I have to do it this way instead: subd.mzielu-store/something? Also, I assume I’ll need to implement redirect logic for non-deep linking scenarios as well.
Thank you @Sunnytech for the answer. Just to be clear: there’s no way to enable deep linking for URLs like mzielu-store.myshopify.com/something, right? I have to do it this way instead: subd.mzielu-store/something? Also, I assume I’ll need to implement redirect logic for non-deep linking scenarios as well.