This is happening to us on iOS and Android devices when Development Build is NOT checked. It doesn't happen on device with Development Build checked or on Editor. We are using Unity engine 2019.4.16f1.
This is the client code:
public void ClaimLevelUpReward(int levelId) { ExecuteCloudScriptRequest cloudScriptRequest = new ExecuteCloudScriptRequest { FunctionName = "TheCloudScriptFunctionName", FunctionParameter = new { level = levelId } }; PlayFabClientAPI.ExecuteCloudScript(cloudScriptRequest, OnRequestSuccess, OnRequestFailed); }
And this is the function implementation on the cloud script:
handlers.TheCloudScriptFunctionName = function(args, context) { log.debug('args', args); var level = null; if (args && args.hasOwnProperty("level")) level = args.level; log.debug('level', level); // Extra code omitted }
The logs received are:
args {}
level
So the function parameter is arriving empty and level is null.
We tried to pass level as string with the same result.