Hi, I'm trying to have Secure Authentication when logging in to Playfab using GameCenter, but I always receive the error "Authentication failed. Signature does not match the authentication request data".
I know I have to fetch the data from Apple using a request in native code, which I am able to do, but couldn't get PlayFab to accept the data.
I tried using this code https://gist.github.com/BastianBlokland/bbc02a407b05beaf3f55ead3dd10f808 , this code https://github.com/desertkun/GameCenterAuth and the iOS Native Pro unity asset, but none of them worked.
I tried altering the native code from some of these plugins because some of them seem to already encode the data to base64 and maybe I didn't need everything encoded, but it didn't work.
I tried encoding the Signature to base64 as the OP said in this post https://community.playfab.com/questions/52821/unity-game-center-secure-authentication-problem.html , but it didn't work.
I tried logging every information I can get from the PlayFabError I receive, but the only information provided is "400 Bad Request" and "Authentication failed. Signature does not match the authentication request data".
I know some time ago apple deprecated generateIdentityVerificationSignatureWithCompletionHandler in place of fetchItemsForIdentityVerificationSignature but using either of them seems to make no difference.
I tried possibly every combination of solutions from all the posts, documentation, videos, commentaries, etc I could find but nothing seems to work.
I have no idea which of the data is incorrect, or if all of them are incorrect, or any detail besides a vague "there's something wrong", and the documentation from PlayFab is also extremely vague on this.
Does someone had to deal with this recently and was successful in doing so? I would really appreciate some help
Thanks in advance