I am trying to redirect the user to the installed app when visiting *www.example.com/success* as well as show a banner when visiting the homepage.
With my current implantation the url DOES NOT redirect and open the app and neither does the website display a banner.
I am following the documentation found here https://developer.apple.com/documentation/safariservices/supporting_associated_domains
My website is a simple create-react-app with a homepage hosted with Firebase.
I have done the following:
1) Add Associated Domains to Signing and Capabilities - *applinks:website.com/success*
2) Add apple-app-site-association file to /public/
3) Amend firebase.json file
4) Link to files in index.html
What I am using to validate:
https://search.developer.apple.com/appsearch-validation-tool
Testing by adding www.example.com/app link to notes and opening, It always opens in safari. I Have also tried reinstalling the app and restarting the phone.
Apple API Validation
I have uploaded a new app version with associated domains to the store and Link To Application has Passed with link www.example.com/.
When visiting www.example.com/apple-app-site-association
Index.html
Firebase.json
https://stackoverflow.com/questions/66871656/how-to-setup-associated-domains-universal-links
With my current implantation the url DOES NOT redirect and open the app and neither does the website display a banner.
I am following the documentation found here https://developer.apple.com/documentation/safariservices/supporting_associated_domains
My website is a simple create-react-app with a homepage hosted with Firebase.
I have done the following:
1) Add Associated Domains to Signing and Capabilities - *applinks:website.com/success*
2) Add apple-app-site-association file to /public/
3) Amend firebase.json file
4) Link to files in index.html
What I am using to validate:
https://search.developer.apple.com/appsearch-validation-tool
Testing by adding www.example.com/app link to notes and opening, It always opens in safari. I Have also tried reinstalling the app and restarting the phone.
Apple API Validation
I have uploaded a new app version with associated domains to the store and Link To Application has Passed with link www.example.com/.
When visiting www.example.com/apple-app-site-association
apple-app-site-association{ "activitycontinuation": { "apps": [ "team.com.example.com" ] },
"applinks": { "apps": [], "details": [ { "appID":
"team.com.example.com", "paths": [ "/", "/*", "/success", "/success/*",] }, "webcredentials": { "apps": [
"team.com.example.com" ] } }
Code Block { "activitycontinuation": { "apps": [ "team.com.example.com" ] }, "applinks": { "apps": [], "details": [ { "appID": "team.com.example.com", "paths": [ "/", "/*", "/success", "/success/*", ] }, ] }, "webcredentials": { "apps": [ "team.com.example.com" ] } }
Index.html
Code Block <link rel="apple-app-site-association file" href="%PUBLIC_URL%/apple-app-site-association"> <link rel="apple-app-site-association file" href="/apple-app-site-association"> <meta name="App" content="app-id=***, app-argument=https://apps.apple.com/US/app/APP/idXXX, affiliate- data=optionalAffiliateData">
Firebase.json
Code Block { "hosting": { "public": "public", "headers": [ { "source": "/apple-app-site-association", "headers": [ { "key": "Content-Type", "value": "application/json" } ] } ], "appAssociation": "NONE" } }
https://stackoverflow.com/questions/66871656/how-to-setup-associated-domains-universal-links