android - Google App Invite 按钮总是指向 Google Play

标签 android deep-linking google-app-invites

我正在根据 documentation 在我的应用程序中实现 Google App Invite 机制.邀请发送工作完美,但按钮“安装”有一个非常奇怪的行为。早期按钮或多或少正常工作,点击“安装”打开现有应用程序,但有时会导致市场。但是这个按钮总是导致市场忽略应用程序已经安装在设备上的事实。在日志中,我每次都通过单击“安装”按钮看到此操作:

I/ActivityManager﹕ START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://play.google.com/store/apps/details?id=package_name&referrer=invitation_id=730634750615-510508a7-7651-4692-a4f8-f221f57b30e2&deep_link_id=http://mydeeplink.com/data flg=0x10000000 cmp=com.android.vending/com.google.android.finsky.activities.MainActivity (has extras)}

我能做错什么吗?为什么单击“安装”按钮会导致 Google Play 忽略设备上已安装的应用程序?谢谢。

最佳答案

设备上没有任何安装配额,所以这不是问题。

如果该应用程序已安装在设备上,那么它将启动该应用程序,而不是尝试安装它。唯一的检查是使用包管理器查找已安装在手机上的包。如果电子邮件或短信邀请在重启后找到并启动了已安装的应用程序,但随后同一封电子邮件或短信又进入了 Play 商店,则该应用程序在运行一段时间后在手机上的状态一定发生了变化虽然,但这不应该发生。

关于android - Google App Invite 按钮总是指向 Google Play,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31343560/

相关文章:

android - 在 Android Studio 中读取连接的低功耗蓝牙设备的 RSSI 值

android - 使用 assetlinks.json 排除或仅允许某些 url

swift - Swift 中标签词选择的动态弹出窗口

android - 错误-Branch IO : Trouble initializing Branch. 无法访问分支服务器,请稍后再试

java - 为什么我的自定义 ImageView 的 onClickListener 未注册?

android - sencha 包无法在 Release模式下运行 zipalign

api - 是否可以在服务器端生成 Google App Invite?

ios - 如何使用深层链接重定向到 Apple App Store? (例如查询字符串)

android - SigningConfig "release"缺少必需的属性 "keyPassword"

android - 您在哪里提交 Android/iOS Google 产品或服务(AppInvites、 map 等)的错误?