Search code examples
androidgoogle-play-servicesgoogle-plus-one

Android Google PlusOne button grayed with my market url [play services v4.3.23]


I'm trying to implement the Google plusOne button in an app. I've followed the setup processes and the button works nicely both in the PlusSampleActivity Project and in my app when using the default test url

However when I use replace this with my app market url then the button is greyed and just spins when clicked.

I'm using the market url in the format "market://details?id=package_name" [as per the Android recommendations]

any hints would be most welcome!

my play-service details:

  • Google-play-services SDK - rev16

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

  • OAuth 2 setup

[edit] interestingly if I use the http equivalent url - which is supposed to be used in webites

e.g. "http://play.google.com/store/apps/details?id=package name"

then the google plusone button works fine! [/edit]


Solution

  • I believe the recommendations you mentioned don't specifically pertain to the +1 facility. The "market" alternative which is working is:

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

    Nevertheless, I believe you're supposed to use:

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

    Personally, I switched to the "market" link, because I had a strange "out-of-sync" problem. The number of +1's on Play's website was very different than those inside the app. It looks like the issue has been fixed though and now both links are in sync.

    You can test your links here: https://developers.google.com/+/web/+1button/