question

Muhammad Roshaan Tariq avatar image
Muhammad Roshaan Tariq asked

Photon Chat not Authenticating with Playfab

Hi,

I am trying to integrate the Photon Chat with my Playfab title. I have integrated it in my other titles too but in this one I cannot get past authentication

here's my code from client side:

private void AuthenticateWithPlayfab()
        {
            chatClient = new ChatClient(this);
            chatClient.ChatRegion = "EU";


            var auth = new AuthenticationValues();
            auth.AuthType = CustomAuthenticationType.Custom;
            auth.AddAuthParameter("username", playFabUserID);
            auth.AddAuthParameter("token", photonAuthToken);
            auth.UserId = playFabUserID;
            chatClient.Connect(photonChatAppID, "1.0", auth);
        }

and now I have tested if my photon token API is working or not and it is working but I don't know what is wrong. Please check out the screenshot I have attached

apissdksphoton
10 |1200

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

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Have you checked this documentation Photon QuickStart? There is the sample code in this section that can be referred to. For more questions about the errors messages from Photon SDK, you can navigate to the Photon developer forum for professional supports.

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.

Muhammad Roshaan Tariq avatar image Muhammad Roshaan Tariq commented ·

@Sarah Zhang

Like I said in my question that I have already implemented Photon & Playfab in my other titles and they are working but this time it is not working

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang Muhammad Roshaan Tariq commented ·

Could you please provide your TitleId?

0 Likes 0 ·
Muhammad Roshaan Tariq avatar image Muhammad Roshaan Tariq Sarah Zhang commented ·

Sure, it's EC13

0 Likes 0 ·
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.