android - 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>
谢谢
解决方案
推荐阅读
- c# - Startup 类的 Configure() 方法中服务的方法注入和构造函数注入有区别吗?
- python - 如果目录在 Python 中以数字结尾,则删除目录
- php - 如果今天在月 10 日、月 15 日、月 20 日之前
- python - 创建一个在文本中查找某些值的方法
- java - Deeplearning4j:生成随机 INDArray(s) 作为 MultiLayerNetwork 的输入
- python - 为什么只打印一个文档?(pymongo)
- python-3.x - 为什么我不能在 @tf.function 中使用 TensorArray.gather()?
- openrowset - 安装 Ms Access 数据库引擎 2016 Redistributable 不会在 SSMS 中的服务器对象->链接服务器->提供程序下创建条目
- docker - Docker Swarm Overlay Network ICMP 可以工作,但没有其他任何作用
- java - 当数据库中有两列同名时如何更新表值