Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Issues with Social.ReportScore

Discussion in 'Scripting' started by DanWeston, Oct 22, 2018.

  1. DanWeston

    DanWeston

    Joined:
    Sep 9, 2014
    Posts:
    32
    I am currently working on an iOS mobile game and in the process of integrating Game Centre. I have been working with the Social API interfaces and have come across a problem with the Social.ReportScore method.

    My game has several score boards on iTunes connect which I am able to upload too successfully, however, I can only do this once per user per score board. This is disappointing as a user would lose previous scores on each board after every played game.

    Is it possible for one authenticated user to upload multiple scores to the same score board on iTunes connect using the provided Social API?

    Here is the small code snipped I've been using to upload single scores, am I missing something more here?

    Code (CSharp):
    1.  
    2. Social.ReportScore((long)score, scoreBoardID, (success) => {
    3.   if (success) {
    4.     Debug.Log ("score uploaded");
    5.   }
    6. });