You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust the contents in “details” key as necessary (see this apple doc for reference)
2) Upload the apple-app-site-association file to your HTTPS web server. You can place the file at the root of your server or in the .well-known subdirectory.
Make it publicly available (with no redirects or 40x) under mywebsite.com/apple-app-site-association
You don’t have to encrypt the AASA file if it’s served over HTTPS to iOS >=9.0. Otherwise, you will need to encrypt it.
3) Prepare your app to handle universal links.
Add an entitlement that specifies the domains your app supports. (Add them in format: applinks:www.mywebsite.comapplinks:mywebsite.comapplinks:subdomain.mywebsite.com)
Update your app delegate to respond appropriately to application(_:continueUserActivity:restorationHandler:). Receives an NSUserActivity object. If activityType is NSUserActivityTypeBrowsingWeb, then that means it was Universal Link. Access the webpageURL property to receive NSURL user tapped on.
The AASA file is downloaded every time you installed your app. So, uninstall/install to redownload the AASA file after changes are made to it.
If you long press on a link and select to Open in Safari then Apple will remember that choice and default to opening in Safari. So you’ll have to long press link again and choose your app to make that the new default.
Thank you, this is very helpful.