Dear PlayFab community,
I have the same problem as this thread.
However, none of the resolutions in the thread seem to apply to me. As far as I can tell, I've got everything configured properly on both ends, but none of my WebHooks are getting triggered.
I'm following the Photon PlayFab integration instructions.
Here are my Photon settings in Unity:
And a successful connection is made with the following C# code:
private static string Version = "0.1"; private void ConnectPhoton(string PlayFabId, string token /*from PlayFabClientAPI.GetPhotonAuthenticationToken()*/) { // Set up the Photon authentication aspects. AuthenticationValues authenticationValues = new AuthenticationValues(); authenticationValues.AuthType = CustomAuthenticationType.Custom; authenticationValues.AddAuthParameter("username", PlayFabId); authenticationValues.AddAuthParameter("token", token); PhotonNetwork.AuthValues = authenticationValues; // Connect to Photon. PhotonNetwork.ConnectUsingSettings(Version); }
Photon AppID: f3416d52-4d66-4ac0-9d8a-75b545a8925d
(Note that the BaseUrl has the SECRET_KEY appended and is not shown here. I have confirmed that this is the same value that appears in the PlayFab Photon Add-On module.)
PlayFab (AppID: 44b1) CloudScript:
interface IPhotonResult { ResultCode: number, Message: string } const photonSuccess: IPhotonResult = { ResultCode: 0, Message: 'Success' }; var RoomCreated = function(args: any, context?: IPlayFabContext): IPhotonResult { Log.Debug("photon_room_created", JSON.stringify(args)); WritePlayerEvent("photon_room_created", args); return photonSuccess; } var RoomClosed = function(args: any, context?: IPlayFabContext): IPhotonResult { WritePlayerEvent("photon_room_closed", args); return photonSuccess; } var RoomJoined = function(args: any, context?: IPlayFabContext): IPhotonResult { Log.Debug("photon_room_joined", JSON.stringify(args)); WritePlayerEvent("photon_room_joined", args); return photonSuccess; } var RoomLeft = function(args: any, context?: IPlayFabContext): IPhotonResult { WritePlayerEvent("photon_room_left", args); return photonSuccess; } var RoomEventRaised = function(args: any, context?: IPlayFabContext): IPhotonResult { WritePlayerEvent("photon_room_event_raised", args); return photonSuccess; } var RoomPropertyUpdated = function(args: any, context?: IPlayFabContext): IPhotonResult { WritePlayerEvent("photon_room_property_updated", args); return photonSuccess; } var WebRPCTest = function(args: any, context?: IPlayFabContext): IPhotonResult { WritePlayerEvent("photon_webrpc_test", args); return photonSuccess; } handlers["roomCreated"] = RoomCreated; handlers["roomClosed"] = RoomClosed; handlers["roomJoined"] = RoomJoined; handlers["roomLeft"] = RoomLeft; handlers["roomEventRaised"] = RoomEventRaised; handlers["roomPropertyUpdated"] = RoomPropertyUpdated; handlers["webRPCTest"] = WebRPCTest;
Thoughts?