I am trying to implement Universal Links in my app using Xamarin.iOS but it is not working. I have already completed the following steps.
- I have uploaded apple-app-site association file on the m.mydomain.com server in the .well-known directory and it is being validated by the apple app search validation tool. I have used the paths ["*", "/"] and verified the team id and bundle id.
- I have enable associated domains in the provisioning profile.
- I have added
applinks:m.mydomain.com
as an associated domain. - I have implemented the following methods: ContinueUserActivity, WillContinueUserActivity, UserActivityUpdated, OpenURL
Even after these steps, the app never opens, instead a webpage opens.
I am using Xamarin.Forms 4.7 and iOS 15.6 (simulator) & 16 (device)
Apple App Site Association File:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "<AppId>",
"paths": ["*", "/"]
},
{
"appID": "<AppId>",
"paths": ["*", "/"]
}
]
}
}
1条答案
按热度按时间wa7juj8i1#
请参阅:https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html
我觉得你需要改变
至
虽然以上是文档中描述的方式,但我认为以下模式更适合多个应用程序。