Hi,
Yes so I had a look at the BUG thread and put the BUG in the subject..
The point. Tier 1 (basic), I build the actual APK, load it on the device, log in to Google Game Services for my app/game. Then comes the call
GameCenterSubmitAchievement("my_incremental_achievement_id",0)
This crashes the whole app with the usual "unfortunately <appname> has stopped" or so. This does not happen in my desktop dev environment or if I run the app using broadcast mode. Only when I install it as APK via Play Store or just load the APK myself. The difference may be due to the app not having access to the GameCenter otherwise or whatever. Not sure what causes the difference but when installed from APK file the above line crashes the app.
Found this in logcat which might be the cause:
java.lang.IllegalStateException: Number of steps must be greater than 0
at android.os.Parcel.readException(Parcel.java:1628)
at android.os.Parcel.readException(Parcel.java:1573)
at com.google.android.gms.games.internal.IGamesService$Stub$Proxy.zzb(Unknown Source)
at com.google.android.gms.games.internal.GamesClientImpl.zzb(Unknown Source)
at com.google.android.gms.games.internal.api.AchievementsImpl$8.zza(Unknown Source)
at com.google.android.gms.games.internal.api.AchievementsImpl$8.zza(Unknown Source)
at com.google.android.gms.internal.zzpr$zza.zzb(Unknown Source)
at com.google.android.gms.internal.zzqa.zzf(Unknown Source)
at com.google.android.gms.internal.zzqa.zzd(Unknown Source)
at com.google.android.gms.internal.zzqf.zzd(Unknown Source)
at com.google.android.gms.internal.zzqd.zzd(Unknown Source)
at com.google.android.gms.games.internal.api.AchievementsImpl.setSteps(Unknown Source)
at com.thegamecreators.agk_player.AGKHelper.GameCenterSubmitAchievement(AGKHelper.java:1885)
Maybe solution is to skip the submit if the value is 0? Not sure if that has any impact on some type of achievement on some platform though. At least catching the exception would be nice.
Cheers,
T