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.
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.
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.
// 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.
options A ERROR(/GoogleSignInOptions)used to configure the GoogleSignInClient.
Known issue - Read #4 https://developers.google.com/android/guides/releases#march_20_2018_-_version_1200 Google says it can be safely ignored.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With