I did see a checklist in another post (see below) that I did verify as being configured correctly, but my delegate never gets called. I have confirmed that my universal link is working correctly as tapping on it in Messages does cause the app to open and handle it by going to the appropriate screen.
A couple of details:
- My universal link is new and am testing it using Developer -> Associated Domains Development
- I am rewriting my app using SwiftUI including
@main
being a struct derived fromApp
What else am I missing?
- is Shared with You enabled for your app? Preferences > Messages > Shared with You and see if the toggle for your APP is enabled?
- is Shared with You enabled for the conversation where these universal links are shared
- In the conversation where the universal links are shared, is the participant a Contact?
- If you have sent the link, then you will need to "Pin" the link for it to surface in Shared with You.
I don't know if its the solution, but when I changed my apple-app-site-association file to a different structure (both seem to work fine for regular universal links.
Did not work for ShareWithYou
{
"applinks": {
"details": [
{
"appIDs": ["ABCDEFGHIJK.com.hotngui.ItsAlmostTime"],
"components": [
{
"/": "/mobile/*",
"comment": "Universal links"
}
]
}
]
}
}
This structure does work:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "ABCDEFGHIJK.com.hotngui.ItsAlmostTime",
"paths": [
"/mobile/*"
]
}
]
}
}