[英]iOS universal app links working on simulator, not on real device
我在我的 React Native 應用程序中實現了通用深度鏈接:
鏈接.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:
{
"applinks": {
"apps": [],
"details": [{
"appID": "<TEAMID>.io.feastly.dad",
"paths": [
"/details",
"/menu",
"/order",
"/share"
]
}]
}
}
他們在模擬器上工作正常(直接到正確的頁面等),但在真實設備上他們只直接到應用程序(即他們正常打開應用程序,他們不鏈接到特定屏幕)
我在模擬器上以多種方式對其進行了測試(例如 safari,通訊錄,從命令行)
有任何想法嗎?
添加http://
和裸 url 到您的鏈接文件。 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.