playgameservices / android-basic-samples

Google Play game services - Android samples
Apache License 2.0
970 stars 972 forks source link

Popup achievements not working #316

Open BlacksAngel opened 3 years ago

BlacksAngel commented 3 years ago

Hello,

When the player unlock an achivement the pop to show that achievment has been completed don't show.

Could you please help me

        GamesClient gamesClient = Games.getGamesClient(this, GoogleSignIn.getLastSignedInAccount(this));
        gamesClient.setViewForPopups(this.findViewById(android.R.id.content));
        gamesClient.setGravityForPopups(Gravity.TOP | Gravity.CENTER_HORIZONTAL);
JohannStolz commented 3 years ago

I could not see the achievement unlock popups because I simply did not attach pictures to the achievements in the developer's console. As soon as I attached the plug pictures, everything began to work perfectly.