【发布时间】:2019-05-20 04:09:43
【问题描述】:
我在oppostore,vivostore,xiaomistore,samsungstore,9apps,huaweistore,还有playstore上传了一个apk。当我有更新时,我希望将用户重定向到他们使用的存储。例如:如果他们从 huaweistore 安装,我想将用户重定向到 huaweistore。我找到了 playstore 和 samsung store 的深层链接,但对于其他商店,我直到现在才找到它。你知道这些商店的深层链接吗?
我可以打开商店,但不能使用深度链接。所以,它是打开用户的浏览器
这是我现在使用的: 要更新三星商店中的应用程序,我使用了这个
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("samsungapps://ProductDetail/<my-package-name>")));
为了打开playstore,我用了这个
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=<my-package-name>")));
对于其他商店,因为我不知道deeplink,所以我使用这个(打开浏览器)
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https:...<link to the app>")));
我希望重定向用户存储他们使用的内容。如果您知道这些商店(oppostore、vivostore、xiaomistore、9apps、huaweistore)的深层链接中的一个或全部深层链接,请发表评论并告诉我。它真的会帮助我。谢谢
【问题讨论】:
标签: java android deep-linking