GameCenter Achievements: Notification even after 100%

bazookaBenbazookaBen Member Posts: 318
edited April 2012 in Tech Support
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%.

Best Answer

  • bazookaBenbazookaBen Posts: 318
    edited April 2012 Accepted Answer
    after 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

Sign In or Register to comment.