首页 > 解决方案 > Android Instant App Deep Link 错误 - 只提供一个 URL

问题描述

我正在尝试创建我的游戏的即时应用版本。

我的主游戏有深度链接(和/或应用程序链接,我真的不知道区别),我希望即时应用程序也有它。通过访问http://mygame.mycompany.com/join?code=12345,如果用户安装了 MyApp,它将被启动,我将读取代码参数。这部分工作正常。我的目标是当用户没有安装 MyApp 时,我希望启动 Instant App。

我遵循了我找到的所有文档,但是当我将它上传到 Google Play 时,我一直收到同样的错误。我在 Google 上搜索了错误消息,发现 0 次点击,这让我有点紧张 :) 同时我正在联系 Google Play 支持,如果我找到解决方案,我会在这里发布。

错误信息是:

“您必须为您的 Instant App APK 提供准确的一个默认 URL。”

有谁知道那是什么意思?

我可以很好地上传我的主应用程序,没有错误消息。Instant App 是给我错误消息的应用程序。并且深度链接在主应用程序中运行良好。

我的主应用 AndroidManifest.xml(相关部分):

      <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" android:host="mygame.mycompany.com" android:pathPattern="/join" />
      </intent-filter>
      <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="mygame" />
      </intent-filter>

我的即时应用 AndroidManifest.xml(相关部分):

      <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" android:host="mygame.mycompany.com" android:pathPattern="/join" />
        <data android:scheme="https"/>
      </intent-filter>

谢谢

标签: androidgoogle-playdeep-linking

解决方案


推荐阅读