Android 12中的深连接仅在生产环境中才有可能?

发布于 2025-02-06 01:04:51 字数 2082 浏览 3 评论 0 原文

这个问题实际上有2个部分

开始Android 12深链接发生了很大变化。

  1. 域验证
  2. 用户批准默认链接以打开该应用程序

我的第一个问题是两者都需要实现这些问题吗?

其次,在阅读文档时,我遇到了这个特定的注释,上面说以下

在清单文件中不使用DEV/TEX URL发布您的应用程序,而公众可能无法访问该应用程序(例如,仅使用VPN访问的任何应用程序)。在这种情况下,解决方法是配置构建变体以生成Dev Builds的不同清单文件。

这是否意味着无法使用有限访问的分期环境进行测试?

注意:

  1. 我已经使用 ,它的作用
  2. 看起来像是这样的
  <activity
          android:name=".view.activity.MemberProfileActivity"
          android:screenOrientation="portrait"
          android:noHistory="true"
          android:windowSoftInputMode="adjustResize|stateHidden">
          <intent-filter android:autoVerify="true">
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />

              <data android:scheme="http" />
              <data android:scheme="https" />
              <data
                  android:host="@string/base_domain"
                  android:pathPrefix="/member_profile/" />
          </intent-filter>
      </activity>

任何帮助。

There are actually 2 parts to this question

Starting Android 12 Deep linking has changed quite a bit.

  1. Domain verification
  2. User approval for default links to open the app

My first question is are both of these needed to be implemented for the deep link to work?

secondly, while reading the documents I came across this particular note which says the following

Do not publish your app with dev/test URLs in the manifest file that may not be accessible to the public (such as any that are accessible only with a VPN). A workaround in such cases is to configure build variants to generate a different manifest file for dev builds.

Does this mean staging environments with restricted access cannot be used for testing?

Note:

  1. I have verified my digital link assets using Confirm the Digital Asset Links files and it works
  2. My manifest looks like this
  <activity
          android:name=".view.activity.MemberProfileActivity"
          android:screenOrientation="portrait"
          android:noHistory="true"
          android:windowSoftInputMode="adjustResize|stateHidden">
          <intent-filter android:autoVerify="true">
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />

              <data android:scheme="http" />
              <data android:scheme="https" />
              <data
                  android:host="@string/base_domain"
                  android:pathPrefix="/member_profile/" />
          </intent-filter>
      </activity>

Any help is greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文