question

adbourdages avatar image
adbourdages asked

Cannot post score to leaderboards - probably related to user login

Hello, Here is a description of what is happening on my test device, a Fire 1st gen. - start game and initialize: all good - complete a level, try to post a score - immediately get an error from the callback: UNRECOREVABLE - on the device, there is a "Connect to GameCircle" page, I click the button Here one of 2 things can happen: - the SDK window dissapear and I am back to the game --- or --- - the SDK window goes away, there is a 3-4s delay - a browser window appears with my amazon username - I enter the password - I go back to the game, nothing more happens So what's going on? Further clues: - I can launch the SDK and view the leaderboards. My scores are shown on the main leaderboard page - If I check any leaderboard details, there is nothing in there - In the SDK, I am shown as "Guest" - There is not even a button to login from the SDK (that's another rant altogether...) - When "Welcome back guest" appears (that' like 25% of the time when I restart? unpredictable), it doesn't follow the banner placement request (always shows up at the bottom) - GC_AsynchronousReplyMessenger times out frequently (I see that in the logcat, but don't know if it is related) I'm quite disapointed that the SDK behavior is so unpredictable: different outcomes to posting scores (although it never works), impossible to login - but different outcomes again, when launching the game sometimes there's a Welcome Back, sometimes not. Finally here is the logcat from amazon.identity 10-12 17:18:18.597: I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(22190): com.greencod.pinball.android calling getToken : scopes=[game_circle:game_data] 10-12 17:18:18.636: E/com.amazon.identity.auth.device.thread.MAPCallbackFuture(22190): Running get on Future with timeout=10000unit=MILLISECONDS 10-12 17:18:18.636: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): isAPIKeyValid : packageName=com.greencod.pinball.android 10-12 17:18:18.636: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): getAppInfo : packageName=com.greencod.pinball.android 10-12 17:18:18.636: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): Finding API Key for com.greencod.pinball.android 10-12 17:18:18.636: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(22190): Attempting to parse API Key from assets directory 10-12 17:18:18.651: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): Begin decoding API Key for packageName=com.greencod.pinball.android 10-12 17:18:18.964: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): APIKey: 10-12 17:18:18.979: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): num sigs = 1 10-12 17:18:18.979: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Signature checking.: 10-12 17:18:19.003: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Fingerpirint checking: 10-12 17:18:19.003: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): scopes has no mapping in json, returning null array 10-12 17:18:19.003: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): perm has no mapping in json, returning null array 10-12 17:18:19.003: D/com.amazon.identity.auth.device.authorization.TokenHelper.PII(22190): GetToken pkg=com.greencod.pinball.android scopes=[game_circle:game_data]: 10-12 17:18:19.003: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): getAppInfo : packageName=com.greencod.pinball.android 10-12 17:18:19.003: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): Finding API Key for com.greencod.pinball.android 10-12 17:18:19.026: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(22190): Attempting to parse API Key from assets directory 10-12 17:18:19.026: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): Begin decoding API Key for packageName=com.greencod.pinball.android 10-12 17:18:19.206: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): APIKey: 10-12 17:18:19.229: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): num sigs = 1 10-12 17:18:19.245: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Signature checking.: 10-12 17:18:19.253: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Fingerpirint checking: 10-12 17:18:19.253: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): scopes has no mapping in json, returning null array 10-12 17:18:19.253: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): perm has no mapping in json, returning null array 10-12 17:18:19.261: D/com.amazon.identity.auth.device.endpoint.TokenVendor.PII(22190): Vending out token: appId=amzn1.application.b013e989a76d4de3896be7b22c4ab80e, scopes=[game_circle:game_data]: 10-12 17:18:19.276: I/com.amazon.identity.auth.device.endpoint.TokenVendor(22190): Try finding a common access token for requested scopes 10-12 17:18:19.323: D/com.amazon.identity.auth.device.endpoint.TokenVendor.PII(22190): Common access token found.: 10-12 17:18:19.323: I/com.amazon.identity.auth.device.endpoint.TokenVendor(22190): Try finding a common refresh token for requested scopes 10-12 17:18:19.362: D/com.amazon.identity.auth.device.endpoint.TokenVendor.PII(22190): Common refresh token found.: 10-12 17:18:19.362: I/com.amazon.identity.auth.device.endpoint.TokenVendor(22190): Common token still has acceptable life, returning it back to caller 10-12 17:18:19.362: D/com.amazon.identity.auth.device.authorization.TokenHelper.PII(22190): GetToken: 10-12 17:18:33.979: I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(22190): com.greencod.pinball.android calling getToken : scopes=[game_circle:game_data] 10-12 17:18:33.995: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): isAPIKeyValid : packageName=com.greencod.pinball.android 10-12 17:18:33.995: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): getAppInfo : packageName=com.greencod.pinball.android 10-12 17:18:33.995: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): Finding API Key for com.greencod.pinball.android 10-12 17:18:33.995: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(22190): Attempting to parse API Key from assets directory 10-12 17:18:34.003: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): Begin decoding API Key for packageName=com.greencod.pinball.android 10-12 17:18:34.011: E/com.amazon.identity.auth.device.thread.MAPCallbackFuture(22190): Running get on Future with timeout=10000unit=MILLISECONDS 10-12 17:18:34.151: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): APIKey: 10-12 17:18:34.151: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): num sigs = 1 10-12 17:18:34.151: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Signature checking.: 10-12 17:18:34.237: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Fingerpirint checking: 10-12 17:18:34.237: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): scopes has no mapping in json, returning null array 10-12 17:18:34.237: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): perm has no mapping in json, returning null array 10-12 17:18:34.237: D/com.amazon.identity.auth.device.authorization.TokenHelper.PII(22190): GetToken pkg=com.greencod.pinball.android scopes=[game_circle:game_data]: 10-12 17:18:34.237: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): getAppInfo : packageName=com.greencod.pinball.android 10-12 17:18:34.237: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): Finding API Key for com.greencod.pinball.android 10-12 17:18:34.253: D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.PII(22190): AmazonAuthorizationManager:sdkVer=1.0.0 libVer=3.3.0: 10-12 17:18:34.253: I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(22190): Options bundle is null 10-12 17:18:34.253: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): getAppInfo : packageName=com.greencod.pinball.android 10-12 17:18:34.253: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): Finding API Key for com.greencod.pinball.android 10-12 17:18:34.253: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(22190): Attempting to parse API Key from assets directory 10-12 17:18:34.261: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): Begin decoding API Key for packageName=com.greencod.pinball.android 10-12 17:18:34.261: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(22190): Attempting to parse API Key from assets directory 10-12 17:18:34.292: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): Begin decoding API Key for packageName=com.greencod.pinball.android 10-12 17:18:34.604: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): APIKey: 10-12 17:18:34.612: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): APIKey: 10-12 17:18:34.620: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): num sigs = 1 10-12 17:18:34.620: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Signature checking.: 10-12 17:18:34.620: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): num sigs = 1 10-12 17:18:34.620: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Signature checking.: 10-12 17:18:34.628: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Fingerpirint checking: 10-12 17:18:34.628: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Fingerpirint checking: 10-12 17:18:34.643: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): scopes has no mapping in json, returning null array 10-12 17:18:34.643: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): perm has no mapping in json, returning null array 10-12 17:18:34.643: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): isAPIKeyValid : packageName=com.greencod.pinball.android 10-12 17:18:34.643: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): getAppInfo : packageName=com.greencod.pinball.android 10-12 17:18:34.651: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): scopes has no mapping in json, returning null array 10-12 17:18:34.651: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): perm has no mapping in json, returning null array 10-12 17:18:34.651: D/com.amazon.identity.auth.device.endpoint.TokenVendor.PII(22190): Vending out token: appId=amzn1.application.b013e989a76d4de3896be7b22c4ab80e, scopes=[game_circle:game_data]: 10-12 17:18:34.659: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): Finding API Key for com.greencod.pinball.android 10-12 17:18:34.659: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(22190): Attempting to parse API Key from assets directory 10-12 17:18:34.659: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): Begin decoding API Key for packageName=com.greencod.pinball.android 10-12 17:18:34.690: I/com.amazon.identity.auth.device.endpoint.TokenVendor(22190): Try finding a common access token for requested scopes 10-12 17:18:34.808: D/com.amazon.identity.auth.device.endpoint.TokenVendor.PII(22190): Common access token found.: 10-12 17:18:34.808: I/com.amazon.identity.auth.device.endpoint.TokenVendor(22190): Try finding a common refresh token for requested scopes 10-12 17:18:34.870: D/com.amazon.identity.auth.device.endpoint.TokenVendor.PII(22190): Common refresh token found.: 10-12 17:18:34.870: I/com.amazon.identity.auth.device.endpoint.TokenVendor(22190): Common token still has acceptable life, returning it back to caller 10-12 17:18:34.870: D/com.amazon.identity.auth.device.authorization.TokenHelper.PII(22190): GetToken: 10-12 17:18:35.034: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): APIKey: 10-12 17:18:35.034: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): num sigs = 1 10-12 17:18:35.042: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Signature checking.: 10-12 17:18:35.042: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Fingerpirint checking: 10-12 17:18:35.042: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): scopes has no mapping in json, returning null array 10-12 17:18:35.042: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): perm has no mapping in json, returning null array 10-12 17:18:35.042: I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(22190): com.greencod.pinball.android calling getAppId 10-12 17:18:35.042: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): getAppInfo : packageName=com.greencod.pinball.android 10-12 17:18:35.042: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): Finding API Key for com.greencod.pinball.android 10-12 17:18:35.081: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(22190): Attempting to parse API Key from assets directory 10-12 17:18:35.081: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): Begin decoding API Key for packageName=com.greencod.pinball.android 10-12 17:18:35.347: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): APIKey: 10-12 17:18:35.354: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): num sigs = 1 10-12 17:18:35.354: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Signature checking.: 10-12 17:18:35.354: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Fingerpirint checking: 10-12 17:18:35.370: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): scopes has no mapping in json, returning null array 10-12 17:18:35.378: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): perm has no mapping in json, returning null array 10-12 17:18:35.808: I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(22190): com.greencod.pinball.android calling getToken : scopes=[game_circle:game_data] 10-12 17:18:35.808: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): isAPIKeyValid : packageName=com.greencod.pinball.android 10-12 17:18:35.808: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): getAppInfo : packageName=com.greencod.pinball.android 10-12 17:18:35.808: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): Finding API Key for com.greencod.pinball.android 10-12 17:18:35.808: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(22190): Attempting to parse API Key from assets directory 10-12 17:18:35.808: E/com.amazon.identity.auth.device.thread.MAPCallbackFuture(22190): Running get on Future with timeout=10000unit=MILLISECONDS 10-12 17:18:35.823: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): Begin decoding API Key for packageName=com.greencod.pinball.android 10-12 17:18:36.370: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): APIKey: 10-12 17:18:36.370: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): num sigs = 1 10-12 17:18:36.378: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Signature checking.: 10-12 17:18:36.456: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Fingerpirint checking: 10-12 17:18:36.472: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): scopes has no mapping in json, returning null array 10-12 17:18:36.472: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): perm has no mapping in json, returning null array 10-12 17:18:36.472: D/com.amazon.identity.auth.device.authorization.TokenHelper.PII(22190): GetToken pkg=com.greencod.pinball.android scopes=[game_circle:game_data]: 10-12 17:18:36.472: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): getAppInfo : packageName=com.greencod.pinball.android 10-12 17:18:36.472: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(22190): Finding API Key for com.greencod.pinball.android 10-12 17:18:36.472: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(22190): Attempting to parse API Key from assets directory 10-12 17:18:36.495: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): Begin decoding API Key for packageName=com.greencod.pinball.android 10-12 17:18:36.917: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): APIKey: 10-12 17:18:36.925: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): num sigs = 1 10-12 17:18:36.933: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Signature checking.: 10-12 17:18:36.948: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(22190): Fingerpirint checking: 10-12 17:18:36.948: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): scopes has no mapping in json, returning null array 10-12 17:18:36.948: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(22190): perm has no mapping in json, returning null array 10-12 17:18:36.948: D/com.amazon.identity.auth.device.endpoint.TokenVendor.PII(22190): Vending out token: appId=amzn1.application.b013e989a76d4de3896be7b22c4ab80e, scopes=[game_circle:game_data]: 10-12 17:18:36.972: I/com.amazon.identity.auth.device.endpoint.TokenVendor(22190): Try finding a common access token for requested scopes 10-12 17:18:37.058: D/com.amazon.identity.auth.device.endpoint.TokenVendor.PII(22190): Common access token found.: 10-12 17:18:37.058: I/com.amazon.identity.auth.device.endpoint.TokenVendor(22190): Try finding a common refresh token for requested scopes 10-12 17:18:37.167: D/com.amazon.identity.auth.device.endpoint.TokenVendor.PII(22190): Common refresh token found.: 10-12 17:18:37.175: I/com.amazon.identity.auth.device.endpoint.TokenVendor(22190): Common token still has acceptable life, returning it back to caller 10-12 17:18:37.175: D/com.amazon.identity.auth.device.authorization.TokenHelper.PII(22190): GetToken:
10 |5000 characters needed characters left characters exceeded

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

Bipin@Amazon avatar image
Bipin@Amazon answered
GameCircle Configurations store your leaderboard and achievement data and are linked to your Security Profiles. You can add multiple versions of a game (using their corresponding API keys)to the same Security Profile so your leaderboard and achievement data is shared across the group.Once linked, Security Profiles cannot be unlinked from a GameCircle Configuration. And make sure the Game circle profile name is added Or it will show that you are a guest user. Enter the name of the Amazon GameCircle profile that you are using to test your application. This will solve UNRECOREVABLE error. https://developer.amazon.com/sdk/gamecircle/documentation/sandbox.html#Section2 You can test your leaderboard and achievement data before publishing it to players. While the data is in a draft state, only Nicknames you have entered have access to those achievements or leaderboards. you can add a player alias to test unpublished content.
10 |5000 characters needed characters left characters exceeded

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

adbourdages avatar image
adbourdages answered
Hello, Thanks for the quick reply. I have published the leaderboards to be sure that was not problem. In fact, from a Samsung Note, I can login and post scores, no problem. However that doesn't work, as described in the original post, on the Kindle Fire 1st gen. On that device, I get the behavior I describe above. It is my understanding that Kindle Fire 1st gen is a supported device? On that phone I have the latest OS as well. Best, Alain-Daniel
10 |5000 characters needed characters left characters exceeded

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

Bipin@Amazon avatar image
Bipin@Amazon answered
Game Circle 2.0 is supported in all kindle devices .The GameCircle experience and Whispersync for Games are now available for all iOS and Android devices, including Kindle Fire. There is a nice Blog, check below link: https://developer.amazon.com/post/Tx34NDHHOLSOIGA/iOS-Support-Comes-to-GameCircle-and-Whispersync-for-Games-Including-Built-In-Ach.html
10 |5000 characters needed characters left characters exceeded

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

adbourdages avatar image
adbourdages answered
Great, there is a nice chart showing where 2.x is available, thanks. However, that doesn't give me any idea why we are getting the error. Alain-Daniel
10 |5000 characters needed characters left characters exceeded

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

adbourdages avatar image
adbourdages answered
Here are some more information about the Kindle in the hope we can rule out whether there is the proper version of game circle installed. System version: 6.3.2_user_4110520 Amazon Game Circle App: 1.1_1101210 There are no updates available for the device and the sync button doesn't do anything. According to this thread ( http://forums.developer.amazon.com/forums/message.jspa?messageID=4954), that should be the correct version. Alain-Daniel
10 |5000 characters needed characters left characters exceeded

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 Adbourdages, Sorry for the late response. Since you posted couple of days back, can you please confirm that you have the same issue with latest GameCircle SDK in Kindle Fire 1st Gen device?
10 |5000 characters needed characters left characters exceeded

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 Adbourdages, Sorry I was not updated about this. We are actively working on this issue and I would post back when the fix is available.
10 |5000 characters needed characters left characters exceeded

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