Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by edwarddennekamp · Oct 20, 2020 at 09:50 PM · Authentication

PlayFabClientAPI.LoginWithGameCenter - signature does not match authentication request data

Using Unity 2020.1.8f1

TitleId: 7A936

On launching my game the Game Center login pops up correctly, I seem to get all the details correctly (key, signature, salt, timestamp), but then when calling PlayFabClientAPI.LoginWithGameCenter it throws the following error:

"signature does not match authentication request data"


Any ideas where to look?

I've used this before for another project that worked a few months back and the code is pretty much identical except of course the TitleId. So not sure what I'm doing wrong.

The iOS Bundle Id in my Unity Player Settings matches the one in PlayFab Apple AddOns.

Not sure what other steps need to be done?

Comment
Tarm

People who like this

1 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Rick Chen ♦ · Oct 22, 2020 at 03:24 AM 0
Share

Thank you for reporting this issue. We will set up environments and reproduce this issue as you described. I will keep this thread updated when there is feedback. Your patience is appreciated and please stay tuned.

3 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Rick Chen · Oct 22, 2020 at 08:51 AM

We tested it in Unity, it worked and we cannot reproduce the issue you described. The issue could be associated with iOS Authentication server. Since there was no issue in our test, it could be fixed before we do the test. Could you please try again and see how it goes? If you still experiencing the issue, please let us know.

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image edwarddennekamp · Oct 22, 2020 at 09:01 AM 0
Share

Thanks for checking,
I tried again but it still throws the same error.

avatar image Rick Chen ♦ edwarddennekamp · Oct 26, 2020 at 05:24 AM 0
Share

Since we cannot reproduce this issue, it could be your local issue of either environment or code. As you mentioned, the one of your old title with the same code works. To determine whether it is an environment issue or code issue, could you please create a new project to see if it still produce the same issue? If it is still producing the same issue, meaning it could be a code issue, then could you please provide a code snippet of how the key, signature, salt, timestamp are obtained and how PlayFabClientAPI.LoginWithGameCenter is used? Then we will diagnose it and give you feedback.

avatar image

Answer by edwarddennekamp · Sep 23, 2021 at 02:01 PM

I think this may be an issue with Game Center changing the UserId to use TeamPlayerId which was introduced in Unity 2020.1.

Can you please confirm that it works for you in Unity 2020.1 or above for your environment so I can at least rule it out as this being the issue or not.

"Unity 2020.1

Added GameID to the Social API it will return GamePlayerID when using GameCenter
Social.localUser.ID will return the TeamPlayerID instead of GameCenterUsersID on iOS 12 and above"
Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by jrnetcode · May 24 at 05:28 PM

The issue I ran into is that if the account is created with the old id. It will not authenticate with the new id. Even if they are the same account. I had to rebind gamecenter using the new methods values.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Do REST API sessions time out? 9 Answers

    Receive incoming webhooks from zendesk 1 Answer

    Update/change password 1 Answer

    Username AND e-mail required in AddUsernamePassword but not in RegisterPlayFabUser 1 Answer

    No confirmation email is received. 5 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges