Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'GoogleSignIn is marked as internal and should not be accessed from app' for new Google Play Services implementation

I'm implementing the new 'simpler' Google Play Services implementation (no GoogleApiClient management) and am getting redlined with the error 'GoogleSignIn is marked as internal and should not be accessed from app. This API had been flagged with a restriction that has not been met.' Despite the error flag my game app still compiles and runs, and has been able to access Leaderboards and Achievements. I'd like to get rid of this flag and to know if it's more than something that should just be hidden from lint, as I don't see how I'd access GoogleSignIn outside of my app.

Games.getLeaderboardsClient(this, GoogleSignIn.getLastSignedInAccount(this))
            .getLeaderboardIntent(leaderboard_id)
            .addOnSuccessListener(new OnSuccessListener<Intent>() {
                @Override
                public void onSuccess(Intent intent) {
                    startActivityForResult(intent, RC_LEADERBOARD_UI);
                }
            });

UPDATE 4/2/18: I've been finding more Google Play Services code error flags after the 12.0.1 update which fixed GoogleSignIn. As previously with GoogleSignIn, they don't affect the compile or run, but are still irritating.

enter image description here

like image 447
Androidcoder Avatar asked Mar 25 '18 14:03

Androidcoder


People also ask

Why is Google letting Google manage my app signing key?

By letting Google manage your app signing key, it makes this process more secure. Note:For apps created before August 2021, you can still upload an APK and manage your own keys instead of using Play App Signing and publishing with an Android App Bundle.

What is an app signing key?

App signing key The key Google Play uses to sign the APKs that are delivered to a user's device. When you use Play App Signing, you can either upload an existing app signing key or have Google generate one for you. Keep your app signing key secret, but you can share your app’s public certificate with others.

What is googlesigninresult and how to use it?

// async callback. The GoogleSignInResult will possibly contain an ID token which may be used to authenticate and identify sessions that you establish with your application servers.

What does error (/googlesigninoptions) mean?

options A ERROR(/GoogleSignInOptions)used to configure the GoogleSignInClient.


1 Answers

Known issue - Read #4 https://developers.google.com/android/guides/releases#march_20_2018_-_version_1200 Google says it can be safely ignored.

like image 101
hvkale Avatar answered Sep 22 '22 21:09

hvkale