Googke license key reseting issue

Hey there, I’m having a problem with parsing Google license key(Google public key): When I close or switch settings window In-App Purchasing my code resets to “Enter key”, help me please

1 Like

Please indicate your versions of Unity and IAP package.

Thanks for answering, it’s 4.12.2

1 Like

Hey @DamyrB,

I’ve talked with the team and we agree that process can be improved. For now I believe you should be able to resolve the issue by:

  1. Adding the public key in the Unity Dashboard (docs)
  2. Then (for receipt obfuscation) the key should be entered already for you in the editor and all you have to do is click “Obfuscate License Keys” which will generate the GooglePlayTangle.cs file
1 Like

Thanks for answering, I think it’s something wrong with IAP window, look at the picture


:

1 Like

Is it possible the Google key uploaded to the dashboard was not in the correct format (given the error at the top of the window)?

1 Like

I copied this from Google play console, This window was always this way. I verified Google key through dashboard and it was verified and saved successfuly, but Editor doesn’t care about this and continious to reset key to “Enter key”, if I make a build with this error but before Google key reseting and with key in dashboard will IAP works correctly after publishing in Google play?

Also I get thes when I verify key in editor.

1 Like

And this after few seconds.

1 Like

Hi everyone,

Regarding JsonParseException:
If you are using Unity Editor 2020 or 2021, please note that these versions might be outdated and could be using a legacy analytics endpoint.
You might find this discussion helpful, and it could be that upgrading to version 2022 might help to resolve the issue.

Thanks,
Vlatko

1 Like