[PUN2]When Connect Chinese Mainland, Photon Update local value to GUID

Options
My code that set CustomAuth below.

==========================================================
var customAuth = new AuthenticationValues { AuthType = CustomAuthenticationType.Custom };
customAuth.AddAuthParameter("username", ACD1B613D096472);
customAuth.AddAuthParameter("token", PhotonCustomAuthenticationToken);

PhotonNetwork.AuthValues = customAuth;
==========================================================

When i connect other server, I see UserId is ACD1B613D096472 in room.

But when in Chinese Mainland, I see UserId is f9ec65af-a01b-46c2-8933-ed64b02d1f48 in room.

I use PlayFab UserID to set customAuth For finding friend, checking player game result so on.

This cause an error in my game logic.

How do I deal with this?



Version - Pun: 2.5 Photon lib: 4.1.2.4

Unity log below.
==========================================================
Received your UserID from server. Updating local value to: f9ec65af-a01b-46c2-8933-ed64b02d1f48
UnityEngine.Debug:Log(Object)
Photon.Realtime.LoadBalancingClient:DebugReturn(DebugLevel, String) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:1834)
Photon.Realtime.LoadBalancingClient:OnOperationResponse(OperationResponse) (at Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs:1942)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer) (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PeerBase.cs:615)
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/EnetPeer.cs:553)
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands() (at C:/Dev/photon-sdk-dotnet/PhotonDotnet/PhotonPeer.cs:1428)
Photon.Pun.PhotonHandler:FixedUpdate() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonHandler.cs:130)
==========================================================






Answers

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Yonghani,

    Thank you for choosing Photon!

    As stated on our documentation page here:
    Important: in the current phase, changes you make to your app via your dashboard are not automatically reflected in app caches for China. Let us know by e-mail, if you have an update request there.

    Send us an email to developer@photonengine.com with your AppId and requested custom authentication changes and my colleague @Markus will take care of it.