如何通过命令行在真实iOS设备上打开iOS应用程序的深层链接?

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

由于可以通过命令行在 ABD Shell 的帮助下在 Android 真实设备上打开 .apk 应用程序的深层链接,我们如何为 iOS 执行相同的操作?

条件:iOS设备已连接到MAC,应用程序已安装,并且我有当前应用程序的深层链接列表。

ios deep-linking ipa deeplink
1个回答
0
投票

在玩了一下 devicectl 之后,我发现了一种几乎可以按需要工作的方法!

我发现可以在设备上启动一个带有 url 的应用程序,这给了我们两个选项:

  1. 使用适用的深度链接 URL 启动 safari。从那里检查深层链接选项是否可见:
    xcrun devicectl device process launch --device xxx --terminate-existing --payload-url https://example.com com.apple.mobilesafari
  2. 使用适用的深层链接 URL 启动您的应用程序。它应该像单击深层链接一样处理它:
    xcrun devicectl device process launch --device xxx --terminate-existing --payload-url https://example.com your.app.bundle.id
© www.soinside.com 2019 - 2024. All rights reserved.