We moved from depracated Google Play Services V1 to new version in our game. We had to change how our game is authenticating with Google Play Services: before the change, we used TokenID, now we use ServerAuthCode.
In order to authenticate from our game to Nakama, we had to add new google credentials flag to nakama configuration:
Now we encountered an issue, where user is getting new nakama account with new Google ID linked, despite logging from the same google account.
Old Google ID have different format: 113792687972591949640
New Google ID have a prefix: a_6368656850866412253
I found that there is a function for remapping old google Ids to new one:
But unfortunately, it’s not working for us. Can you please provide a solution to successfully remap old accounts to new ids or can you point me resources, which can shed new light on this issue?
@MichalKrela the remapping looks at the originalPlayerId field to map the old id to the new one.
I believe this value may not always be available, but it is not clear to me when it is or isn’t depending on the Google auth scopes, flow, account details and etc.
Hi @sesposito
thanks for answer. In our case, as you can see below, originalPlayerId is not populated in response json (don’t mind id is different from previous post, I checked this behavior on number of accounts):