I have requested cloudscript to write player event on playstream, but it gives me back javascript errors and unity error simultaneously.
My cloud script is :
handlers.RoomJoined = function (args) { log.debug("Room Joined - Game: " + args.GameId + " PlayFabId: " + args.UserId); server.WritePlayerEvent({ "PlayFabId" : args.UserId, "EventName" : "OnJoinedRoom", "Body" : { "event" : "OnJoinedRoom" } }); };
My unity code calling cloudscript is :
PlayFabClientAPI.ExecuteCloudScript(new ExecuteCloudScriptRequest { FunctionName = "RoomJoined", }, OnCloudResponse, OnErrorShared);
I've tried this because webhooks actually not working well. Is there anything I have missed so far?
Title ID would be "D63C"
Thank you, in advance.