Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Achievements not being reported on Game Center [Sandbox]

Discussion in 'iOS and tvOS' started by Xaon, Dec 18, 2014.

  1. Xaon

    Xaon

    Joined:
    Feb 28, 2013
    Posts:
    62
    Hi! I'm implementing achievements for Game Center. My problem is that they're not being reported while testing in Sandbox. If I'm using Social API like this:
    Code (CSharp):
    1.  
    2. GameCenterPlatform.ShowDefaultAchievementCompletionBanner(true);
    3. Social.localUser.Authenticate(AuthenticateCallback);
    4. /* after authentication succedeed */
    5. IAchievement achievement = Social.CreateAchievement();
    6. achievement.id = some_id; //got from column Achievement ID on iTunes Connect - Game Center
    7. achievement.percentCompleted = 100.0;
    8. achievement.ReportProgress(ReportCallback);
    then ReportCallback is called with parameter = true.
    Still I have no popup. Also I see no achievements unlocked on Game Center app which makes it different case than in http://forum.unity3d.com/threads/ios7-and-game-center-achievements-no-banners-displayed.201498/.
    If I'm using Prime31 than I also got positive callback after authentication but I don't have any callback from reported achievements.
    I don't know if something is wrong with my setup or is it because I'm testing it in Sandbox.
    I've created new Sandbox user to test this.
    My setup on iTunes Connect looks like this (I had to hide actual names):
    - on apps Game Center tab:
    Game Center -is on.png


    Game Center - achievement setup.png

    - on apps Versions tab:


    iTunes Connect - achievement setup.png
     
  2. HollowRockAdam

    HollowRockAdam

    Joined:
    Jan 15, 2013
    Posts:
    16
    I am currently having the same exact problem. Did you ever find a solution to this? Any help would be awesome. Thanks!
     
  3. charnold

    charnold

    Joined:
    Mar 31, 2014
    Posts:
    31
    Last edited: Mar 29, 2015
  4. JaredPagodaWest

    JaredPagodaWest

    Joined:
    Jul 17, 2014
    Posts:
    1
    I am also having this issue, we are planning to launch our next game today and don't know if our achievements going to be working, and have wasted a lot of time troubleshooting this. I hope we can get an answer soon.
     
  5. Squarehead

    Squarehead

    Joined:
    Sep 18, 2014
    Posts:
    10
    Same here.
     
  6. TheSlayerNo1

    TheSlayerNo1

    Joined:
    Feb 7, 2015
    Posts:
    2
    I made this iOS plugin for reporting achievements to Game Center. Just import the package and replace your call to Social.ReportProgress with GKAchievementReporter.ReportAchievement(achievementID, progress, showsCompletionBanner)
     

    Attached Files:

    OJ3D and Benzor like this.
  7. Benzor

    Benzor

    Joined:
    Dec 29, 2013
    Posts:
    12
    @TheSlayerNo1 I had to login just to say thanks: your .unitypackage works like a charm and saved me a bunch of trouble :)
     
  8. OJ3D

    OJ3D

    Joined:
    Feb 13, 2014
    Posts:
    33
    TheSlayerNo1 you are the best! Super slick package and works like a beast!
     
  9. fallingbrickwork

    fallingbrickwork

    Joined:
    Mar 16, 2009
    Posts:
    1,072
    Sorry to bring this topic back to life, but you saved my skin with this... ReportAchievement *still* broken in 5.3.1; yawn!

    I still can't get the Completion Banner to trigger, even with this life saver, any thoughts?

    - Matt.
     
  10. Tiberius1701

    Tiberius1701

    Joined:
    Sep 16, 2014
    Posts:
    68
    I know this is an old thread, but beating my head against the wall - I tried importing @TheSlayerNo1 package, but no matter what I do my script can't find GKAchievementReporter to call. Can anyone help?

    Kindest Regards,
    Garry