问题描述
我使用 firebase 深层链接部分创建了一个 Android deep link
。
我已经将我的域与 firebase host
相关联,并且看起来可以正常工作。
如果我的应用已经安装,动态链接会被正确拦截并打开应用,但如果应用未安装,我将无法重定向到 Play 商店页面。
这是我的深层链接:
短链接:
https://domain.it/app
长链接:
https://domain.it/app?param=1
对于 iOS(我还没有 iOS 应用程序)我选择了“在浏览器中打开直接链接”选项
对于Android,我选择在应用程序中打开网址,如果未安装应用程序,则重定向到播放商店页面。
在 android 上我在清单中设置:
<intent-filter android:label="app">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.broWSABLE" />
<data android:scheme="https"
android:host="domain.it"
android:pathPrefix="/app" />
</intent-filter>
<intent-filter android:label="app">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.broWSABLE" />
<data android:scheme="domain"
android:host="app" />
</intent-filter>
就是这样,仅此而已。我错过了什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)