question

oosnuyh86 avatar image
oosnuyh86 asked

'Room created', 'Room joined' and etc. webhook from cloudscript not triggered

Hello, there.

I am struggling to configuring photon + playfab.

Subsequent to success of user authentication with photon + playfab, I let the client to auto-join the lobby. Photon App ID is set to work.

Then I request to Photon to create the room and it successfully created and joined room.

I expected the playfab cloudscript to send webhook as soon as the room created.

Even another user had joined, roomjoined webhook was not called.

I checked the playstream and it shows nothing happened since the user authentication.

Would you please verify what I have missed?

My AppID is 9efbc001-73cc-4bc6-a664-6f3128530070

Thank you, in advance.

CloudScriptphotonwebhooks
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

oosnuyh86 avatar image oosnuyh86 commented ·

Title ID is D63C

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

What's the Title ID of the game, so that we can have a look?

7 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

oosnuyh86 avatar image oosnuyh86 commented ·

Title ID is D63C

0 Likes 0 ·
brendan avatar image brendan ♦♦ oosnuyh86 commented ·

Everything appears to be configured correctly. I do see that your RoomCreated, RoomJoined, etc. handlers don't actually do anything, though. To be clear, there wouldn't be an event generated from those handlers being called - can you try putting a WritePlayerEvent in them, and check that you're seeing that?

0 Likes 0 ·
oosnuyh86 avatar image oosnuyh86 brendan ♦♦ commented ·

I added the custom event rule to check 'OnJoinedRoom' event called, in automation tab.

Below is my unity photon behavior function. It still doesn't show up in playstream.

public override void OnJoinedRoom()

{

Debug.Log("Joined Room" + PhotonNetwork.room); WriteClientPlayerEventRequest wpe = new WriteClientPlayerEventRequest() { EventName = "OnJoinedRoom",

Timestamp = DateTime.Now,

Body = new Dictionary<string, object>()

{ { "EventName", "OnJoinedRoom" },

{ "SceneId", current_scene } }

};

}

What would it be mistaken?

0 Likes 0 ·
Show more comments
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]