Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Tier 2] AGK 2.0.17 Problem with Amazon Game Circle Initialization.

Author
Message
ThrOtherJoJo
12
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 28th Feb 2016 01:31
There is an issue with trying to login to Amazon's Game Circle. I'm having a problem with the api key. I have the api_key.txt file downloaded from amazon portal for my game and I placed in the assets folder and set the key in the manifest file but having in it issues.

Here is the logcat info:
Quote: "
02-27 10:40:50.592 4445-4464/? I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier: getAppInfo : packageName=com.KG2Entertainment.WhileYouAreWaiting
02-27 10:40:50.592 4445-4464/? I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier: Finding API Key for com.KG2Entertainment.WhileYouAreWaiting
02-27 10:40:50.594 4445-4464/? I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser: Attempting to parse API Key from assets directory
02-27 10:40:50.596 4445-4464/? I/com.amazon.identity.auth.device.appid.APIKeyDecoder: Begin decoding API Key for packageName=com.KG2Entertainment.WhileYouAreWaiting
02-27 10:40:50.608 4445-4464/? D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII: APIKey:<obscured>
02-27 10:40:50.609 4445-4464/? I/com.amazon.identity.auth.device.appid.APIKeyDecoder: num sigs = 1
02-27 10:40:50.610 4445-4464/? D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII: Signature checking.:<obscured>
02-27 10:40:50.611 4445-4464/? D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII: Fingerpirint checking:<obscured>
02-27 10:40:50.617 4445-4464/? W/com.amazon.identity.auth.device.appid.APIKeyDecoder: Failed to decode: Decoding fails: certificate fingerprint can't be verified!
java.lang.SecurityException: Decoding fails: certificate fingerprint can't be verified!
at com.amazon.identity.auth.device.appid.APIKeyDecoder.verifyPayload(APIKeyDecoder.java:332)
at com.amazon.identity.auth.device.appid.APIKeyDecoder.doDecode(APIKeyDecoder.java:127)
at com.amazon.identity.auth.device.appid.APIKeyDecoder.decode(APIKeyDecoder.java:91)
at com.amazon.identity.auth.device.appid.AbstractAppIdentifier.getAppInfo(AbstractAppIdentifier.java:85)
at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.<init>(AmazonAuthorizationManager.java:123)
at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:144)
at com.thegamecreators.agk_player.AGKHelper.GameCenterLogin(AGKHelper.java:1215)
02-27 10:40:50.619 4445-4464/? E/GameCircleClient: Unable to read api key. GameCircle requires an api key to be included in 'assets/api_key.txt'. GameCircle will not initialize.
java.lang.IllegalArgumentException: Invalid API Key
at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.<init>(AmazonAuthorizationManager.java:126)
at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:144)
at com.thegamecreators.agk_player.AGKHelper.GameCenterLogin(AGKHelper.java:1215)
02-27 10:40:50.961 449-857/? I/ActivityManager: Killing 4373:com.amazon.sync.service/u0a22109 (adj 12): empty #13
"
Prove Your Worthiness
KG2Entertainment.com
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 28th Feb 2016 21:55
You do not need the api_key.txt file, putting it in the manifest is enough. The error says the key is invalid, double check that the signature you used to generate the key is the same as the signature of the keystore you used to generate the APK.
ThrOtherJoJo
12
Years of Service
User Offline
Joined: 24th Mar 2012
Location: California
Posted: 29th Feb 2016 00:59
Thanks. That helps alot..
Prove Your Worthiness
KG2Entertainment.com

Login to post a reply

Server time is: 2024-09-29 11:30:35
Your offset time is: 2024-09-29 11:30:35