ios通用重定向链接在真实设备上不起作用,但在模拟器上起作用。

问题描述 投票:0回答:1

我在react native中使用univeral link。它在ios模拟器上可以工作,但在实际设备上却不能工作。下面是apple-app-site-association文件。

{
    "applinks": {
        "apps": [],
        "details": [
            {
                "appID": "L439KYBPK7.com.****.****",
                "paths": [ "/auth/redirect"]
            }
        ]
    }
}

下面是xcode配置。

applink screenshoturl scheme screenshot

正如我所说,应用程序在ios模拟器(13.4.1)上工作,但在实际设备(13.4.1)上不能工作,也就是说,在oauth完成后,在实际设备上没有重定向到应用程序。谢谢您的帮助。

ios react-native redirect react-native-ios ios-universal-links
1个回答
0
投票

请检查你的域名是否支持AAPA文件。

https:/branch.ioresourcesaasa-validator。

在设备上索引AAPA文件可能需要时间,请删除并重新安装应用程序。

你可以很容易地在模拟器上运行Deeplink.只要在终端上执行:xcrun simctl openurl booted YOUR_URL。

© www.soinside.com 2019 - 2024. All rights reserved.