When I unlock an achievement, the “Achievement Unlocked” pop-up window does not appear, but the achievement is unlocked, as I see in the list of achievements.
I have already tried this solution, but it does not work.
I initialize the GoogleApiClient like this in my MainActivity:
gac = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN) .addApi(Games.API).addScope(Games.SCOPE_GAMES) .build(); app.setGoogleApiClient(gac); gac.connect();
In my "Game over Activity" I do the following:
ApplicationClass app = (ApplicationClass) getApplication(); googleApiClient = app.getGoogleApiClient();
... and I will unlock these achievements:
Games.Achievements.unlock(googleApiClient, "achievement id");
Thanks in advance!
source share