I tried to get the verification status on player's contact email but kept getting error as shown below
Request Profile FailedRequestViewConstraintParamsNotAllowed UnityEngine.Debug:Log(Object) <>c:<CheckPlayerEmailVerified>b__4_1(PlayFabError) (at Assets/Scripts/PlayFabLogin.cs:88) PlayFab.Internal.<>c__DisplayClass30_0:<QueueRequestError>b__0() (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:395) PlayFab.Internal.PlayFabWebRequest:Update() (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:477) PlayFab.Internal.PlayFabHttp:Update() (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs:364)
Any suggestion? :3
public bool CheckPlayerEmailVerified(string id) { bool result = false; var request = new GetPlayerProfileRequest() { PlayFabId = id, ProfileConstraints = new PlayerProfileViewConstraints() { ShowContactEmailAddresses = true}, }; PlayFabClientAPI.GetPlayerProfile( request, success => { result = success.PlayerProfile.ContactEmailAddresses[0].VerificationStatus == EmailVerificationStatus.Confirmed; Debug.Log(success.PlayerProfile.ContactEmailAddresses[0].VerificationStatus); }, fail => { Debug.Log($"Request Profile Failed{fail.Error}"); } ); return result; }