Is it possible to set an achievement progress to numbers like 0.5% or 50.1%?
The fact that achievement progress is reported via a double suggests that it should be possible, but when I try doing it only the integer part seems to be saved.
Is it possible to set an achievement progress to numbers like 0.5% or 50.1%?
The fact that achievement progress is reported via a double suggests that it should be possible, but when I try doing it only the integer part seems to be saved.
You observation is correct.
After much debugging, I'm seeing that if you report partial percentage progress within 10-15 seconds, GameCenter will cache the previous progress and things will work. However, if you let too much time expire prior to calling ReportProgress again, GameCenter will "forget" the partial percentage progress and reset to ~~zero ~~ the previous whole integer percent value.
This caused inconsistent issues between achievements where I was reporting progress very frequently vs. only occasionally.
GameCenter will "forget" the partial percentage progress and reset to zero.
Correction: I meant that progress percentage will reset to the last rounded WHOLE INTEGER.
As an example:
Is there a way we can overcome this issue? I have an Achievement which requires a flow to be performed for 250 times. Each flow performed will progress the achievement by 0.4%.