Search code examples
androidandroid-fragmentsyoutube-apigoogle-api-clientandroid-youtube-api

GoogleApiClient is not connecting in alpha testing mode, but it does in development mode


GoogleApiClient is not connecting in alpha testing mode, but it does in development mode.

mGoogleApiClient = new GoogleApiClient.Builder(mContext) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API) .addScope(Plus.SCOPE_PLUS_PROFILE) .build();

When checking if the google API is connected or not, it always shows not connected.

if (!mGoogleApiClient.isConnected() || Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) == null) 

Can someone please help me with this?


Solution

  • REQUEST_CODE_ASK_PERMISSIONS = 123 is for GET_ACCOUNTS