question

Wai avatar image
Wai asked

api_key.txt show in the webpage is different from file of download button

I try to create a api key for game circle. But i found that the game circle never init in debug and said the api key is wrong. I found that the api key show in the webpage is different from the downloaded api_key.txt. I try both version and seem don't game the game circle work on testing. Anyone can help?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Wai avatar image
Wai answered
I found that the key value is different everytime i view the value and download the api_key.txt file.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Joe T avatar image
Joe T answered
Wai, I've noticed the same thing, but it's actually immaterial to implementation. Once you've saved the API_key.txt to assets/ you shouldn't need to view the api key or generate another one. This same problem was actually slowing me down as well as you need the api_key for both GameCircle and IAP. If you are failing auth, (CANNOT_INITIALIZE) definitely get another key to save in your assets, but outside of that check to make sure your receivers are set up in your project for GameCircle. (The xml for the manifest is here https://developer.amazon.com/public/apis/engage/gamecircle/docs/initialize-android#Step%203.%20Update%20your%20AndroidManifest.xml%20File) Hopefully this helps you if you were having a problem.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Wai avatar image
Wai answered
Thanks. But the problem exist even if i just generate the key and not visit the page again. And i exactly follow the code from the example. So, i don't thank the problem is the coding. And the same coding work before in another apps. And It is wried if the key is not the same every time, how can they verify my key. I try to generate a new key but there is error popup said the server error. I think there some problem on their system. I have ask amazon and no reply yet. Message was edited by: Wai
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Nick Gardner avatar image
Nick Gardner answered
Hi, GameCircle API keys are not always the same each time you download them, but they will all work the same with their associated security profile. If you are having issues with the client not initializing, I'd double check that your application is being signed properly and that the signature of the signed apk you are using is the same as for the security profile.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.