如何在 iOS 中测试你的延迟深度 link

How to test your deferred deep link in iOS

我有一个应用程序,我必须在其中使用 deeplink 和 deferred deep link。 我可以在我的应用程序中调试 deeplink,但如何在我的 iOS 应用程序中调试延迟的 deeplink。

我如何知道从 Appstore 新安装应用程序时我在启动选项中获得了什么价值,以及我如何在开发过程中调试 deferred deep link?

是否可以在开发中调试 deferred deep link 而无需进入应用商店?

根据我们经常使用的 Branch.io,您可以在没有 App Store 的情况下手动复制该过程。当他们说“Branch link”时,只需使用您自己的 link:

Deferred deep linking is simply deep linking into an app that is not yet installed. Once the app is installed, the context is preserved and the user's first app-open will have the deep link data from the original Branch link. To test this, uninstall the app from your device, click the Branch link, and manually launch the app from Xcode. You should be routed to the correct content within your app.

https://help.branch.io/developers-hub/docs/ios-testing

在调试模式下你可以点击你的分支link(也许你可以在笔记页面上复制这个link或者在whatsapp上发送给你自己)它会打开link 在 safari 上并将您重定向到应用商店(不要从应用商店安装当前应用)。

Post 您可以简单地 运行 通过 xcode 连接到系统的设备上的应用程序。这将与延迟的 deeplink 具有相同的效果。 (你可以在你的应用程序委托中调试它,只要确保你在同一个网络上.. wifi 或 4g 作为分支使用它进行指纹识别并且可能不会 运行 延迟深度 link 如果这之间发生变化您单击 link 并通过 xcode 启动应用程序的时间。)

如果您不想测试它在生产环境中的表现,您可以使用试飞。 (点击 link 并在 safari 中打开后通过试飞安装应用程序)