I have been trying to figure out for hours on how to call a very simple function in cloudscript from javascript. I've been searching for hours on the net but no luck so I have no choice but to ask here. I'm trying to make a game via html5 javascript. And I want to make a function call in cloudscript using the ExecuteCloudScript.
here is my javascript code for calling the cloud script function:
var helloworld = {};
helloworld.FunctionName = 'helloWorld';
PlayFabClientSDK.ExecuteCloudScript(helloworld, OnCloudHelloWorld, OnErrorShared);
var OnCloudHelloWorld = function(result)
{ console.log(result.data); }
var OnErrorShared = function(error){ console.log(error); }
I have already log in. Log.in is fine but when I execute the call for the cloud script. it says session ticket is null but I have already tried to do PlayFab.settings.sessionTicket = response.data.SessionTicket; but still not working