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.

Question Getting Token in Editor but not in Android-Build

Discussion in 'Leaderboards' started by tim_ebert, Jun 20, 2023.

  1. tim_ebert

    tim_ebert

    Joined:
    Mar 30, 2017
    Posts:
    3
    Hi, I'm having problems getting Leaderboards to run as a standalone Android build for Quest2. I'm using the default Initialize-Setup from the documentation.

    Code (CSharp):
    1. private async void Awake()
    2.     {
    3.             await UnityServices.InitializeAsync();
    4.             Debug.Log("after InitializeAsync");
    5.  
    6.             await SignInCachedUser();
    7.             Debug.Log("after SignInCachedUser");
    8. }
    "While starting the game in the editor, the Initiate works just fine and all leaderboard functions are usable. However, when I start the game as an .apk, the Initiate isn’t working at all. The console shows neither success nor error messages for the Initiate, so it might be stuck or caught in a loop.

    Any help would be greatly appreciated. Does anyone have a possible solution?"
     
  2. tim_ebert

    tim_ebert

    Joined:
    Mar 30, 2017
    Posts:
    3
    this thread can be closed because this problem might be more of an authentication SDK problem, than a leaderboards problem.