Hello
I have started a production title to use it for the live version we have, but we faced a weird issue.
We have a handler that returns the statistics but for unknown reason it is returning the value 1 for the statistics instead of the real value.
The handler from CloudScript, I edited it to make short so it just returns the response of GerPlayerStatistics.
The response I get:
The statistics value:
Note: The exact handler works great on the development title, both development and production title have the same configuration/settings.
Answer by Sarah Zhang · Jul 29, 2020 at 06:46 AM
Could you please provide the source code that contains the logic to get “stats” or provide your TitleId? We cannot reproduce the issue according to the current info provided. The “FunctionResult” in the 2nd screenshot is “stats”. Now we have tested the CloudScript that you provided in the 1st screenshot, it can return the correct result of “playerStats”.
Besides, if you have a PlayFab live title, you can navigate to [Game Manager]->[(?)]->[Contact Us] -- https://developer.playfab.com/en-US/r/t/[YourTitleID]/support (replace [YourTitleID] to your actual title Id), to submit any questions via support tickets. You can submit your questions via support tickets if you want to discuss it in private supports.