androidgoogle-plusover-the-air

Google+ Over-The-Air Installs doesn't work


I'm trying to make Google+ Over-The-Air Installs working (https://developers.google.com/+/web/signin/android-app-installs)

I added Client ID for my Android app and for web app into Google apis frontend and added data-apppackagename parameter to button. I would expect new dialog box appear right after regular G+ log-in dialog.

Is anybody got this feature working??!

My html:

<script>AsyncRequest('https://plus.google.com/js/client:plusone.js?onload=start')
    function signInCallback(authResult) {
        if (authResult['code']) {
            alert('oki-doki');
        }
    }
</script>
    <!-- Add where you want your sign-in button to render -->
<div id="signinButton">
  <span class="g-signin"
    data-scope="https://www.googleapis.com/auth/plus.login"
    data-clientid="XXXXXX"
    data-redirecturi="postmessage"
    data-accesstype="offline"
    data-cookiepolicy="single_host_origin"
    data-apppackagename="com.tfd.mobile.TfdSearch"
    data-callback="signInCallback">
  </span>
</div>
<div id="result"></div>

ADDED:

Does I right understand that over-the-air install window should appears right after auth popup and before my signInCallback js got fired?


Solution

  • I just added some troubleshooting info to Over the air installs page that might help out. It does look like your app should meet the qualifications required for the feature to be available.

    My guess is that Google Play store believes that you have the app installed or possibly still have it on another device that you use and so its not triggering. It could also be that you tried it out and the system was still caching that you had it installed.