【发布时间】:2017-11-20 14:31:44
【问题描述】:
我的 BaseActivity onCreate()
中有以下代码// Google Play Services
mGoogleSignInClient = GoogleSignIn.getClient(this, new GoogleSignInOptions
.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN)
.build());
然后我将其称为在子类中
startActivityForResult(mGoogleSignInClient.getSignInIntent(), RC_SIGN_IN);
我使用以下代码解锁成就
GoogleSignInAccount googleSignInAccount = GoogleSignIn.getLastSignedInAccount(activity);
if (googleSignInAccount != null) {
Games.getAchievementsClient(activity, googleSignInAccount)
.unlockImmediate(id);
}
它有效,但我看不到任何“成就已解锁”弹出窗口。
【问题讨论】:
标签: android google-play-services google-play-games