【问题标题】:Android Google PlusOne button grayed with my market url [play services v4.3.23]Android Google PlusOne 按钮用我的市场 url 变灰 [play services v4.3.23]
【发布时间】:2014-04-08 11:18:40
【问题描述】:

我正在尝试在应用中实现 Google plusOne 按钮。我遵循了设置过程,并且按钮在 PlusSampleActivity 项目和我的应用程序中都能很好地工作在使用默认测试 URL 时

但是,当我使用 我的应用市场网址 替换此按钮时,该按钮将变为灰色,并且在单击时会旋转。

我正在使用格式为“market://details?id=package_name”[as per the Android recommendations] 的市场 URL

欢迎任何提示!

我的游戏服务详情:

  • Google-play-services SDK - rev16

  • Google-play-services_library 项目 [android:versionCode="4323030" android:versionName="4.3.23 (1069729-030)]

  • OAuth 2 设置

[编辑] 有趣的是,如果我使用 http 等效 url - 它应该在 webites 中使用

例如"http://play.google.com/store/apps/details?id=package姓名"

那么 google plusone 按钮就可以正常工作了! [/编辑]

【问题讨论】:

    标签: android google-play-services google-plus-one


    【解决方案1】:

    我认为您提到的建议并非专门针对 +1 设施。正在发挥作用的“市场”替代方案是:

    https://market.android.com/details?id=PACKAGE_NAME
    

    不过,我相信你应该使用:

    https://play.google.com/store/apps/details?id=PACKAGE_NAME
    

    就个人而言,我切换到“市场”链接,因为我遇到了一个奇怪的“不同步”问题。 Play 网站上的 +1 数量与应用内的数量大不相同。看起来问题已经解决了,现在两个链接都同步了。

    您可以在这里测试您的链接:https://developers.google.com/+/web/+1button/

    【讨论】:

      【解决方案2】:

      Ioh-maa,你是男人!在数小时甚至数天后,这成功了:-)

      很抱歉,我还不能投票给你出色的答案,但我会在可以的时候投票。

      我使用了您建议的https://market url 格式,它变得生动起来。

      我不得不说,android developers page 真的读给我听,就好像你在 Android 应用程序中使用时不应该有 https:// 前缀一样。但是你去...

      【讨论】:

        【解决方案3】:

        就我而言:

        mPlusOneStandardButtonWithAnnotation.initialize("https://play.google.com/store/apps/details?id=com.appxy.calenmob", 0);
        

        如果我喜欢上面的方法,我会在 google play 上找到 +79,但在我的应用上找到 +56!

        然后我改成这样:

        mPlusOneStandardButtonWithAnnotation.initialize("https://market.android.com/details?id=com.appxy.calenmob", 0);
        

        成功了!我发现 + 数字与我在 google play 之间的应用相同。祝你好运

        【讨论】:

          猜你喜欢
          • 2011-01-12
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多