android - 如何从链接打开应用程序而不是玩商店 - Android
问题描述
我想检查是否安装了应用程序然后打开应用程序,如果没有然后播放商店。我尝试使用我的应用程序的 Play 商店链接,但没有成功
<intent-filter
android:autoVerify="true"
android:label="Notification Log">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="play.google.com"
android:path="/store/apps/details?id=com.appnotification.notificationhistorylog"
android:scheme="http" />
</intent-filter>
谁能帮我这个
解决方案
它通过将 Playstore 链接更改为短 URL 来工作
<data
android:host="bit.ly"
android:path="/yourappname"
android:scheme="http" />
推荐阅读
- eloquent - 带有急切加载的orderby,laravel
- javascript - 在 aws 中使用临时凭证获取“您提供的 AWS 访问密钥 ID 在我们的记录中不存在”
- r - RRF 模型为测试集提供 NA
- java - 在 REST 和休眠中检索详细信息时出现 406 错误
- node.js - 如何使用 Electron 在 linux 中处理自定义协议?
- javascript - JavaScript 时钟字体大小
- c# - 使用相对路径复制文件
- php - 如何从两端对 PHP 网站进行负载测试
- vba - 用于检查生产件是否大于 104% 的 Vba 代码
- sql - 如何获取一个月的最后一个日期,但在 SQL Server 中隐藏星期日和星期六