gpt4 book ai didi

android - 如果未安装应用程序,则启动 Google Play 商店

转载 作者:行者123 更新时间:2023-12-02 20:26:00 27 4
gpt4 key购买 nike

目前,我想打开此链接,如果未安装该应用程序,则需要它导航到 Google Play。以下是我尝试打开的链接。

intent:qoo10sg://moveTab?index=2&url=https%3A%2F%2Fm.qoo10.my%2Fgmkt.inc%2FMobile%2FDeal%2FTimeSale.aspx%3Fcix%3D0%26__da_seqno%3D39213891#Intent;package=net.giosis.shopping.sg;end;

我希望它从此 URL 启动到应用商店,可以吗?

最佳答案

要实现此目的,您需要执行 JavaScript 重定向。我会在您想要的任何网址(即 yourdomain.com/checkForApp)托管一个网页,并进行一些简单的重定向。

尝试该链接,如果失败,请使用 Javascript 重定向到 Play 商店或应用商店。

setTimeout(function appNotInstalled() {
window.location.replace("http://play.google.com/store");
}, 100);
window.location.replace("intent:qoo10sg://moveTab?index=2&url=https%3A%2F%2Fm.qoo10.my%2Fgmkt.inc%2FMobile%2FDeal%2FTimeSale.aspx%3Fcix%3D0%26__da_seqno%3D39213891#Intent;package=net.giosis.shopping.sg;end;");

否则,Branch他们的 SDK 中已经做到了这一点,因此您不必担心构建它。

关于android - 如果未安装应用程序,则启动 Google Play 商店,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49919109/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com