微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Firebase 深层链接不重定向到存储 android

如何解决Firebase 深层链接不重定向到存储 android

我使用 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 举报,一经查实,本站将立刻删除。