How to create the Private chat system with Photon Chat?

I have almost done it but before showing the message it doesn't show the new messages.
if anyone has done the private chat system, please let me know how to do it.
Thank you...

Best Answer


  • Hi @Albertkaruna,

    Thank you for choosing Photon!

    I don't understand what is the issue here.

    Photon Chat allow you to send private messages from a single user to a single user using a single method call.
  • Albertkaruna
    edited May 2017
    I was tried but it wasn't working.
    If you got any sample code, please show me that.

    How to add players to private channel?
  • Photon "private channels" can have only two users.
    You can use "public channels" with a name shared between few users (more than 2) so it work as "private channels" others can't see/subscribe to unless they guess the name.
  • I've tried to use the private chat but still, i can't get the result. The examples that you're given doesn't have any examples for a private chat. So, please give me some example code.
    Thank you.
  • Thank you @JohnTube . Now it's working fine.
  • I just copy pasted the docs.
  • AjayBhojani
    edited January 2018
    is it possible to get TargetUserId ? I want all user ids who is connected.
    Thanks in advance....!