question

monkeynautgames avatar image
monkeynautgames asked

Always logged in as Guest. Seeing CANNOT_AUTHORIZE

Hi, I am trying to integrate with Game Circle but it always logs me in as Guest, not as the currently logged in user. If I tap on the welcome message I see a blank white screen. My logcat shows the following suspicious logs: The api_key decoding prints: has no mapping in json, returning null array This log: KindleFireIPCProxy: authResult: CANNOT_AUTHORIZE I see on the forums that a few people seem to have been having a similar issue to me, but none of the solutions proposed have worked for me. I have tried all of the suggestions from this link: https://developer.amazon.com/post/Tx1W2W735R6O17B/GameCircle-CANNOT-AUTHORIZE-Exception.html So: 1. Are you testing on Kindle Fire or on a Kindle Fire Emulator? >>> Yes - I'm testing on a Kindle Fire HD, Model Num: X43Z60. I am hoping to try this out on an emulator too, as soon as it finishes downloading. 2. Is the device signed in with an Amazon account? >>> Yes - I am signed in to my Amazon account on the device and I am signed in to Game Circle with my nickname. I have added my nickname as a test account in the GameCircle developer console. 3. Make sure the device has been updated to the latest version of the Fire OS. >>> The 'Update your Kindle' option is greyed out on my Kindle. I can also confirm that the GameCircle app on my Kindle is version 2.6.32.0-gen5_2607510. So I think I have the latest available Kindle software, but just in case I also tried pressing 'Sync' on my Kindle, this did nothing and did not help either. 4. Make sure you're using the latest version of the GameCircle API. >>> I'm using Game Center SDK version: "GameCircle Android SDK Version 2.3.0" 5. Make sure you got a valid result from the key tool command you used to get the signature. >>> The part of the suggestions seems outdated. Instead I have retrieved the MD5 Hash from my keystore in accordance with the instructions in Step 2) here: https://developer.amazon.com/public/apis/engage/gamecircle/docs/create-a-gamecircle-configuration I am sure that this hash is correct. I have double checked that by running this command against my apk: unzip -p {your-app.apk} META-INF/CERT.RSA | keytool -printcert | grep MD5 And this matches what I have put in to generate an API key. I can also confirm that the following things have been configured correctly: - When generating an api key, I used the correct package name, copied from my AndroidManifest.xml file. I'm confident that the package name is correct because when it was not correct I got a different error specifically saying that the decode of the api_key failed because the package names don't match. After that I fixed this up. - The AuthorizationActivity in my AndroidManifest.xml file has my correct package name filled in instead of YOUR_PACKAGE_NAME_HERE. - I have downloaded the api_key.txt as a file from the Api Key generator tool and placed it in assets/ in my project - I have added my test account to the list of testers in GameCircle console - Also I am connected to Wifi the whole time while running testing I have also retried the whole process by generating a new keystore and key locally, signing my package with the new keystore and then generating a new API key from the MD5 from the MD5 of the new key. This didn't help. None of these things have fixed the problem or changed anything - I still just see these errors: "has no mapping in json, returning null array" "KindleFireIPCProxy: authResult: CANNOT_AUTHORIZE" Any help would be greatly appreciated.
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Monkeynautgames, Thank you for reaching us on this. We were reported with the similar issue here: https://forums.developer.amazon.com/forums/thread.jspa?threadID=2946&tstart=0 We are going to fix the issue in the back end. I can see that your security profile also is in affected list. I will let you know once the fix is live.
10 |5000

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

monkeynautgames avatar image
monkeynautgames answered
Thanks for the quick response. Do you have any ETA for when the fix will be available?
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi, It should be fixed now. Can you please check?
10 |5000

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

monkeynautgames avatar image
monkeynautgames answered
Yep -it's working for me now. Thanks for that.
10 |5000

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