GameCenter Achievements: Notification even after 100%
bazookaBen
Member Posts: 318
on calling the Update Achievements behavior after it reaches 100% and above, the GameCenter notification will fire up.
test case:
100% -> fires once
100% for 2nd time -> doesn't fire
110%, 120% and above -> fires again
i remembered in the Pro webinar, the mods mentioned that it will not fire up more than once after it reaches 100%.
test case:
100% -> fires once
100% for 2nd time -> doesn't fire
110%, 120% and above -> fires again
i remembered in the Pro webinar, the mods mentioned that it will not fire up more than once after it reaches 100%.
Best Answer
-
bazookaBen Posts: 318after some hacking, i made a temp fix
to avoid repeating achievements in ad-hoc mode,
- use a test account that matches your iTunes connect account ( create it from there )
- do not use the update achievement for percentages > 100
- construct a percentage limit using the following condition
eg:
assuming 500 is your threshold,
if coinsCollected < 500 , update Gamecenter dynamically using coinsCollected/500*100
if coinsCollected >= 500, update Gamecenter with percentage = 100
for distribution build (app store), i've yet to test.
can anyone confirm?
Answers