我在我的 iOS 应用程序中添加了通用链接
messages http://somesite.com/message/list/ >> opens the app to messages
review http://somesite.com/review/add/ >> opens the app to review
place http://somesite.com/place/add/ >> opens the app to place
photo http://somesite.com/photo/add/ >> opens the app to photo
一切都按预期工作,我的问题是:如何排除路径或网址,甚至永远不会打开应用程序?
例如
somepage http://somesite.com/somepagelink >> SHOULDN'T OPEN APP, it must show up in the browser.
苹果应用网站关联文件
{
"applinks":
{
"details": [
{
"paths": ["*", "NOT /somepagelink/*"],
"appID": "ID1.myApp"
},
{
"paths": ["*", "NOT /somepagelink/*"],
"appID": "ID2.myApp"
}],
"apps": []
},
"activitycontinuation":
{
"apps": ["ID1.myApp","ID2.myApp"]
}
}
这是排除路径的正确方法吗?
"NOT /somepagelink/*"