[英]iOS universal app links working on simulator, not on real device
I implemented universal deep links in my React Native app:我在我的 React Native 应用程序中实现了通用深度链接:
Linking.ts:链接.ts:
const config = {
screens: {
details: {
path: "details",
},
menu: {
path: "menu",
},
orders: {
path: "orders",
},
share: {
path: "share",
},
},
}
export const linking = {
prefixes: ["https://getdad.co.uk", "dad://"],
config,
}
apple-app-site-association: apple-app-site-association:
{
"applinks": {
"apps": [],
"details": [{
"appID": "<TEAMID>.io.feastly.dad",
"paths": [
"/details",
"/menu",
"/order",
"/share"
]
}]
}
}
They work fine on the Simulator (direct to the correct page, etc), but on a real device they only direct to the app (ie they open the app normally, they don't link to a specific screen)他们在模拟器上工作正常(直接到正确的页面等),但在真实设备上他们只直接到应用程序(即他们正常打开应用程序,他们不链接到特定屏幕)
I tested it in multiple ways on the Simulator (eg safari, address book, from command line)我在模拟器上以多种方式对其进行了测试(例如 safari,通讯录,从命令行)
Any ideas?有任何想法吗?
Add http://
and the bare url to your linking file.添加http://
和裸 url 到您的链接文件。 https
goes to safari on the iphone, don't know why, don't care, this works: https
在iphone上转到safari,不知道为什么,不在乎,这个有效:
export const linking = {
prefixes: [
"https://getdad.co.uk",
"http://getdad.co.uk",
"getdad.co.uk",
"dad://",
],
config,
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.