How to generate App codes?

💻 Environment/Context

  • Mobile App
  • App codes
  • App login

 

In order for you to get the player's id, the Configure > Teams and players, Can view page and Can view players permission should be enabled on your account.

If you're unable to follow any of the steps below, kindly reach out to your admin or refer to the Account Type Permissions Overview article for more information.

 

 

 

❓ Issue/Question

  • How do we generate an app code that lets a player log in to the ScorePlay mobile app directly, without scanning a QR code or opening a deep invite link?

 

👌 Resolution/Answer

  • App Codes are the simplest way to log a player into the mobile app. Unlike QR codes or deep links, they don't require any encoding and are easy to generate at scale, since all you need is the player's ScorePlay ID.
  • The app code format is: P{player_id}
  • Where {player_id} is the player's ScorePlay ID. For example, if the player's ID is 116319, their app code is P116319.
     
  • To get the player_id:
    • Option A: Open the player's profile in ScorePlay; the number at the end of the URL is the player_id.
    • Option B: Via API: use the ScorePlay public API (developer.scoreplay.io), authenticating with your organization's API key in the X-ScorePlay-Api-Key header. See "How to Obtain a Player's player_id and company_id via API" for the exact endpoint and steps.
       
  • Once you have the player_id, prefix it with P and share that code with the player. They can enter it on the ScorePlay app's login screen to sign in directly, no QR code or link needed.

 

🔖 Notes