Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a way to add apple-app-association link #1260

Closed
maelp opened this issue Feb 3, 2025 · 11 comments
Closed

Need a way to add apple-app-association link #1260

maelp opened this issue Feb 3, 2025 · 11 comments

Comments

@maelp
Copy link

maelp commented Feb 3, 2025

I'm replacing my website with shopify, but I still want the users of my app to be able to access files in the mydomain.com/.well-known folder, in particular mydomain.com/.well-known/apple-app-site-association, there should be an easy mechanism to do this in Shopify

@tgloc
Copy link

tgloc commented Feb 5, 2025

You can set this up by going to Settings -> Apps and sales channels -> App Development -> Select your app -> Configuration -> Storefront API integration -> scroll to iOS/Android Buy SDK setup and fill in information about your app as this image

Image

@maelp
Copy link
Author

maelp commented Feb 5, 2025

@tgloc interesting, but this is only pertaining to the Shopify "iOS buy SDK" feature no? I want to use deeplink for our own app functionality, not related to Shopify ecommerce features

@tgloc
Copy link

tgloc commented Feb 5, 2025

I apologize, but I need clarification on your question. The settings described above are specific to Shopify, which provides a file at mydomain.com/.well-known/apple-apsite-association. When you set up Associated Domains in your application, clicking website links will open your app if it's installed on the device.

@maelp
Copy link
Author

maelp commented Feb 5, 2025

My apple-app-site-association file is very custom and I need it for deeplinks during the functioning of my app, here it seems to be a settings that "auto-creates" an apple-app-site-association, and doesn't let me choose its content?

For instance, my apple-app-site-association file contains the reference to multiple apps (my business uses several apps)

I think the settings you're referring to is only made for a single kind of deeplinks that target the use of the "iOS Buy SDK" no? or don't I understand the settings correctly?

Is there a way to specify fully my own custom apple-app-site-association file?

@maelp
Copy link
Author

maelp commented Feb 5, 2025

When I check the "iOS Buy SDK" I see this:

Image

To clarify, this is not what I'm interested in. I'm interested in using the non-Shopify features of my non-Shopify app :)

@tgloc
Copy link

tgloc commented Feb 5, 2025

Don't worry about this. When you set up your app by filling in your Apple App ID in this form and save, Shopify will automatically generate the file mydomain.com/.well-known/apple-app-site-association for you. This isn't related to the iOS Buy SDK at all. As a Flutter Mobile Application developer, I've successfully released apps with this feature working properly, including Native Payment with ApplePay.

@maelp
Copy link
Author

maelp commented Feb 5, 2025

I understand what you say, but for me, for instance, I need two different app ids (because there are multiple companion apps for my website), I'm not sure that this is possible in Shopify if there's only a single App ID in the form?

Check for instance: https://www.gouach.com/.well-known/apple-app-site-association

Image

@tgloc
Copy link

tgloc commented Feb 5, 2025

I've found a solution that works well. You'll need to create an additional development app and install it in your store. Then, repeat the first step as I did, and you'll receive two domains, as shown in the image.
Image

@maelp
Copy link
Author

maelp commented Feb 5, 2025

Interesting, thanks!

@tgloc
Copy link

tgloc commented Feb 5, 2025

You’re welcome 😄

@tgloc
Copy link

tgloc commented Feb 10, 2025

If your issue has been resolved, it would be great if you could close it. Thanks! 😄

@maelp maelp closed this as completed Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants