我试图打开我的android应用程序在ios的深链接它的工作对我来说,但在android I它没有打开我app.config.json
intentFilters: [
{
action: "VIEW",
autoVerify: true,
data: [
{
scheme: "http",
host: "*./http://192.168.1.4:3000",
pathPrefix: "/"
},
{
scheme: "rentcreek",
host: "*",
pathPrefix: "/"
}
],
category: ["BROWSABLE", "DEFAULT"]
}
]
和前缀
const prefix = Linking.createURL('/');
const config={
screens:{
Splash:{
screens:"Splash"
}
}
}
const linking = {
prefixes: [prefix],
config
};
查看文档,我建议如下:
- 检查是否有/. known/assetlinks。上传到指定位置的json文件
- 检查是否开启了自动验证
- 也看着主机,我觉得你应该去掉*。/http://部分从主机,所以它将是192.168.1.4:3000