Search Unity

Question Score tracking for users in web game

Discussion in 'Authentication' started by dev00900, Feb 14, 2022.

  1. dev00900

    dev00900

    Joined:
    Feb 14, 2022
    Posts:
    1
    Hi,

    I have a unity game which I need to provide users reward after completion of Levels. The reward would go out in cryptocurrencies, thus needs to be secure for the backend API to be sure that there is no manipulation. Is there any standard approach to track user's score using the backend API, so that only users who reach the certain level by playing the game.
     
  2. unity_Ctri

    unity_Ctri

    Unity Technologies

    Joined:
    Oct 20, 2020
    Posts:
    81
    Hi Dev,

    There's a couple approaches you can use.
    Assuming you trust the player devices to be sending honest data, you can just use the Analytics service and a custom event to track player progress.

    However if you don't trust the build not to be compromised, then Cloud Code and Cloud Save could work for your purposes. Cloud Code could be used to let you validate that whatever parameters sent by the game client meet your requirements, and Cloud Save could be used to save player specific progress for reference.

    Depends exactly what you're envisioning but those are the tools I'm aware of that are the closest fit to your description.