OnUserSubscribed not called
MaZy
✭
Hi, when ever an user subscribe a channel OnUserSubscribed does not get called.
Szenario:
User A subscribe the Channel "Default"
User B subscribe the Channel "Default"
Now I except on User A script the OnUserSubscribed would get called but it doesn't get called.
What I want to achieve is to add all new user to a list to have a list of all user in that channel. If there is already a list by default so I can skip above and use the list.
The Photon Chat Demo in Unity do not call OnUserSubscribed as well.
Everything else works well like sending a chat message.
Szenario:
User A subscribe the Channel "Default"
User B subscribe the Channel "Default"
Now I except on User A script the OnUserSubscribed would get called but it doesn't get called.
What I want to achieve is to add all new user to a list to have a list of all user in that channel. If there is already a list by default so I can skip above and use the list.
The Photon Chat Demo in Unity do not call OnUserSubscribed as well.
Everything else works well like sending a chat message.
0
Comments
-
Hi, when ever an user subscribe a channel OnUserSubscribed does not get called.
Szenario:
User A subscribe the Channel "Default"
User B subscribe the Channel "Default"
Now I except on User A script the OnUserSubscribed would get called but it doesn't get called.
What I want to achieve is to add all new user to a list to have a list of all user in that channel. If there is already a list by default so I can skip above and use the list.
The Photon Chat Demo in Unity do not call OnUserSubscribed as well.
Everything else works well like sending a chat message.
You should enable publish subscribers flag on channel creation to receive OnUserSubscribed ev
Note that it will limit maxsubs in channel to 100
https://doc-api.photonengine.com/en/pun/v2/class_photon_1_1_chat_1_1_chat_client.html#a3555ccf4d4ab66c607c1a85fed060e49
https://doc-api.photonengine.com/en/pun/v2/class_photon_1_1_chat_1_1_channel_creation_options.html
https://doc-api.photonengine.com/en/pun/v2/interface_photon_1_1_chat_1_1_i_chat_client_listener.html#a4212e7c70411c3f0dbb11fb661810e5c
https://doc-api.photonengine.com/en/pun/v2/interface_photon_1_1_chat_1_1_i_chat_client_listener.html#a82186d0cdc36550111910a6357a681320