question

E4 Software avatar image
E4 Software asked

GameCircle login as Guest

Hello, I am adding GameCircle support for a game that I have published. I have followed all the instructions that I have found and have been searching on the forums and google for 2 days trying to solve the current problem. I am using Unity and have used the Unity Social API to integrate with GameCenter. When I build and push my game onto my Kindle Fire HDX, it only logs in as Guest. I have tried everything I have found. Here is some of the stuff I have tried: - Have added the GameCircle nickname found under Profile to the test accounts in the portal - Have created key using MD5 from the keystore I am using for my released game. - Have created a key using the ".android" debug.keystore, - Have created a new new keystore and added my bundle identifier to it and tried that one. - Have created a key even using the MD5 under the appstore certificate in the developer portal. - Built using debug and release In all the above cases, I make sure to get the corresponding api_key and update the file in my project before I build. None of the above helped. GameCircle keeps the application logged in as Guest only. I know I have the latest software installed on my device and I can see other apps that I have downloaded work fine with GameCircle. Many of the forum posts talk about white listing applications, but I can not find anything other than creating a key for this purpose. I have been trying to find out what is going on by looking at logcat, but all that I can see as a problem is that it says "playerAliasFailed". I have not found any information about how I could resolve this issue. I am including a subset of the logcat here: D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.PII(29958): AmazonAuthorizationManager:sdkVer=1.0.0 libVer=3.3.0: I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(29958): Options bundle is null I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(29958): getAppInfo : packageName=com.e4software.solitaireddhd I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(29958): Finding API Key for com.e4software.solitaireddhd D/alsa_ucm( 342): Setting mixer control: RDAC7 MUX, value: DEM5_INV D/alsa_ucm( 342): Setting mixer control: LINEOUT1 Volume, value: 80 D/alsa_ucm( 342): Setting mixer control: LINEOUT3 Volume, value: 80 D/alsa_ucm( 342): Setting mixer control: LINEOUT2 Volume, value: 80 D/alsa_ucm( 342): Setting mixer control: LINEOUT4 Volume, value: 80 D/alsa_ucm( 342): Set mixer controls for HiFi enable 1 D/alsa_ucm( 342): Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 1 D/ALSADevice( 342): setHardwareParams: reqBuffSize 2048 channels 2 sampleRate 48000 I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(29958): Attempting to parse API Key from assets directory I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): Begin decoding API Key for packageName=com.e4software.solitaireddhd D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(29958): APIKey: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): num sigs = 1 D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(29958): Signature checking.: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(29958): Fingerpirint checking: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): scopes has no mapping in json, returning null array I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): perm has no mapping in json, returning null array I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(29958): isAPIKeyValid : packageName=com.e4software.solitaireddhd I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(29958): getAppInfo : packageName=com.e4software.solitaireddhd I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(29958): Finding API Key for com.e4software.solitaireddhd I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(29958): Attempting to parse API Key from assets directory I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): Begin decoding API Key for packageName=com.e4software.solitaireddhd D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(29958): APIKey: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): num sigs = 1 D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(29958): Signature checking.: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(29958): Fingerpirint checking: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): scopes has no mapping in json, returning null array I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): perm has no mapping in json, returning null array I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(29958): com.e4software.solitaireddhd calling getAppId I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(29958): getAppInfo : packageName=com.e4software.solitaireddhd I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(29958): Finding API Key for com.e4software.solitaireddhd I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(29958): Attempting to parse API Key from assets directory I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): Begin decoding API Key for packageName=com.e4software.solitaireddhd D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(29958): APIKey: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): num sigs = 1 D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(29958): Signature checking.: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(29958): Fingerpirint checking: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): scopes has no mapping in json, returning null array I/com.amazon.identity.auth.device.appid.APIKeyDecoder(29958): perm has no mapping in json, returning null array I/GameCircleClient(29958): AmazonGamesClient.initialize() has already been called. Reinitializing. W/Settings(29958): Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value. V/AmazonInsightsSDK(29958): Firing Session Event: _session.resume I/AmazonInsightsSDK(29958): Event: '_sess...' recorded to local filestore I/AmazonInsightsSDK(29958): Session Resumed. D/AGS_AmazonGamesClientProxyImpl(29958): GameCircle - Service is Ready W/Whispersync(29958): WhispersyncClient has already been initialized E/qcom_sensors_hal( 754): _hal_sensors_activate: handle=0, enabled=1 D/Unity (29958): Sensor : Accelerometer ( 1) ; 0.001190 / 0.01s ; MPU6500 / InvenSense I/Unity (29958): AmazonGameCircle: GameCircleManager - serviceReady I/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) I/Unity (29958): UnityEngine.Debug:Log(Object) I/Unity (29958): AmazonLogging:Log(AmazonLoggingLevel, String, String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonCommon\Source\AmazonLogging.cs:125) I/Unity (29958): AGSClient:Log(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:302) I/Unity (29958): GameCircleManager:serviceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\GameCircleManager.cs:37) I/Unity (29958): I/Unity (29958): (Filename: C Line: 0) I/Unity (29958): I/Unity (29958): AmazonGameCircle: Client GameCircle - Service is ready I/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) I/Unity (29958): UnityEngine.Debug:Log(Object) I/Unity (29958): AmazonLogging:Log(AmazonLoggingLevel, String, String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonCommon\Source\AmazonLogging.cs:125) I/Unity (29958): AGSClient:Log(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:302) I/Unity (29958): AGSClient:ServiceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:188) I/Unity (29958): GameCircleManager:serviceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\GameCircleManager.cs:40) I/Unity (29958): I/Unity (29958): (Filename: C Line: 0) I/Unity (29958): I/Unity (29958): Authentication successful I/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) I/Unity (29958): UnityEngine.Debug:Log(Object) I/Unity (29958): SolitaireGameCenter: m__0(Boolean) (at C:\Source\E4Solitaire\Assets\Scripts\SolitaireGameCenter.cs:37) I/Unity (29958): c__AnonStorey7:<>m__12() (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\UnitySocialAPI\GameCircleSocial.cs:238) I/Unity (29958): AGSClient:ServiceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:192) I/Unity (29958): GameCircleManager:serviceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\GameCircleManager.cs:40) I/Unity (29958): I/Unity (29958): (Filename: C Line: 0) I/Unity (29958): E/Unity (29958): AmazonGameCircle error: ILocalUser.underage.get is not available for GameCircle E/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) E/Unity (29958): UnityEngine.Debug:LogError(Object) E/Unity (29958): AmazonLogging:LogError(AmazonLoggingLevel, String, String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonCommon\Source\AmazonLogging.cs:74) E/Unity (29958): AGSClient:LogGameCircleError(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:282) E/Unity (29958): AGSSocialLocalUser:get_underage() (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\UnitySocialAPI\AGSSocialLocalUser.cs:98) E/Unity (29958): SolitaireGameCenter: m__0(Boolean) (at C:\Source\E4Solitaire\Assets\Scripts\SolitaireGameCenter.cs:38) E/Unity (29958): c__AnonStorey7:<>m__12() (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\UnitySocialAPI\GameCircleSocial.cs:238) E/Unity (29958): AGSClient:ServiceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:192) E/Unity (29958): GameCircleManager:serviceReady(String) (at C I/Unity (29958): Username: I/Unity (29958): User ID: I/Unity (29958): IsUnderage: False I/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) I/Unity (29958): UnityEngine.Debug:Log(Object) I/Unity (29958): SolitaireGameCenter: m__0(Boolean) (at C:\Source\E4Solitaire\Assets\Scripts\SolitaireGameCenter.cs:39) I/Unity (29958): c__AnonStorey7:<>m__12() (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\UnitySocialAPI\GameCircleSocial.cs:238) I/Unity (29958): AGSClient:ServiceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:192) I/Unity (29958): GameCircleManager:serviceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\GameCircleManager.cs:40) I/Unity (29958): I/Unity (29958): (Filename: C Line: 0) I/Unity (29958): I/Unity (29958): Authentication successful I/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) I/Unity (29958): UnityEngine.Debug:Log(Object) I/Unity (29958): SolitaireGameCenter: m__0(Boolean) (at C:\Source\E4Solitaire\Assets\Scripts\SolitaireGameCenter.cs:37) I/Unity (29958): c__AnonStorey7:<>m__12() (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\UnitySocialAPI\GameCircleSocial.cs:238) I/Unity (29958): AGSClient:ServiceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:192) I/Unity (29958): GameCircleManager:serviceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\GameCircleManager.cs:40) I/Unity (29958): I/Unity (29958): (Filename: C Line: 0) I/Unity (29958): E/Unity (29958): AmazonGameCircle error: ILocalUser.underage.get is not available for GameCircle E/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) E/Unity (29958): UnityEngine.Debug:LogError(Object) E/Unity (29958): AmazonLogging:LogError(AmazonLoggingLevel, String, String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonCommon\Source\AmazonLogging.cs:74) E/Unity (29958): AGSClient:LogGameCircleError(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:282) E/Unity (29958): AGSSocialLocalUser:get_underage() (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\UnitySocialAPI\AGSSocialLocalUser.cs:98) E/Unity (29958): SolitaireGameCenter: m__0(Boolean) (at C:\Source\E4Solitaire\Assets\Scripts\SolitaireGameCenter.cs:38) E/Unity (29958): c__AnonStorey7:<>m__12() (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\UnitySocialAPI\GameCircleSocial.cs:238) E/Unity (29958): AGSClient:ServiceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:192) E/Unity (29958): GameCircleManager:serviceReady(String) (at C E/DEBUG (29958): ProfilesClientImpl.getLocalPlayerProfile.getFailureResponse: {"REQUEST_ID":"24764f0c-c4d3-4d7f-8fc5-0c8abcb69e1c","RESPONSE_CODE":"6"} I/Unity (29958): Username: I/Unity (29958): User ID: I/Unity (29958): IsUnderage: False I/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) I/Unity (29958): UnityEngine.Debug:Log(Object) I/Unity (29958): SolitaireGameCenter: m__0(Boolean) (at C:\Source\E4Solitaire\Assets\Scripts\SolitaireGameCenter.cs:39) I/Unity (29958): c__AnonStorey7:<>m__12() (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\UnitySocialAPI\GameCircleSocial.cs:238) I/Unity (29958): AGSClient:ServiceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:192) I/Unity (29958): GameCircleManager:serviceReady(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\GameCircleManager.cs:40) I/Unity (29958): I/Unity (29958): (Filename: C Line: 0) I/Unity (29958): E/DEBUG (29958): ProfilesClientImpl.getLocalPlayerProfile.getFailureResponse: {"REQUEST_ID":"d4bd2e3a-bed8-4580-bb26-0c1e134a23bb","RESPONSE_CODE":"6"} I/Unity (29958): AmazonGameCircle: GameCircleManager - playerAliasFailed I/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) I/Unity (29958): UnityEngine.Debug:Log(Object) I/Unity (29958): AmazonLogging:Log(AmazonLoggingLevel, String, String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonCommon\Source\AmazonLogging.cs:125) I/Unity (29958): AGSClient:Log(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:302) I/Unity (29958): GameCircleManager:playerAliasFailed(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\GameCircleManager.cs:61) I/Unity (29958): I/Unity (29958): (Filename: C Line: 0) I/Unity (29958): I/Unity (29958): AmazonGameCircle: GameCircleManager - playerAliasFailed I/Unity (29958): UnityEngine.Debug:Internal_Log(Int32, String, Object) I/Unity (29958): UnityEngine.Debug:Log(Object) I/Unity (29958): AmazonLogging:Log(AmazonLoggingLevel, String, String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonCommon\Source\AmazonLogging.cs:125) I/Unity (29958): AGSClient:Log(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\AGSClient.cs:302) I/Unity (29958): GameCircleManager:playerAliasFailed(String) (at C:\Source\E4Solitaire\Assets\Plugins\AmazonGameCirclePlugin\Source\GameCircleManager.cs:61) I/Unity (29958): I/Unity (29958): (Filename: C Line: 0) I/Unity (29958): Is there a step I am missing? What do I need to do to be able to fix this and to be able to continue my testing. Once this is solved, how do I make sure that it would work on the released version as well. Can you please help. Thanks.
10 |5000

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

E4 Software avatar image
E4 Software answered
I am still having this issue and have been trying more things to make it work. I tried the same exact Unity code on an android tablet and phone (Samsung Galaxy Tab 2.0, and an HTC Inspire) and they both logged in as Guest at first but gave me a chance to log in. Once I logged in using my developer account, they both worked! I was able to do everything with the exception of listing the leaderboards. The achievements, however, worked like a champ. The achievements were listed and when I played the game, the achievements were registered and the notification at the bottom of the page did appear. Scores were not posted and the leaderboards were not retrieved or shown. I then thought that the issue might be the account on my Kindle Fire HD or HDX devices, I deregistered and registered with my developer account but the problem on the Kindle devices still is there. It only logs in as Guest and does not let me do anything. Maybe this helps narrow down the issue. Thanks.
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
Hey, I think, your Kindle OS is out dated. Minimum GameCircle client of version 2.5.2500310 should be installed in your Kindle tablets and that comes with OS. The current version can be determined on Kindle Fire HDX 8.9” and Kindle Fire HDX 7” by navigating to Settings->Applications->Manage All Applications->Amazon GameCircle. On Kindle Fire (1st Generation), Kindle Fire (Second Generation), Kindle Fire HD 7", and Kindle Fire HD 8.9", navigate to Settings->Applications->Installed Applications->Amazon GameCircle. If your Kindle Fire shows an earlier version of Amazon GameCircle, follow these steps to upgrade: Ensure the device is charged to at least 40%. Swipe down from the top of the screen to display the notification bar. Touch Sync. Leave your device turned on but idle.
10 |5000

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

E4 Software avatar image
E4 Software answered
Hello, I checked my Game Circle Application version and it says that it is version 3.0.127.0-gen6_30022410 on my Kindle Fire HDX. I have tried everything I can think of. Can you please help. Other published applications that I download from the store that have Game Circle integrated work without a problem. Why would my application not work? Please don't say it is the key or application package name. I have tried generating a key for the application package name for my application, the debug key, and even creating a new key on the same keystore or even creating a new kestore. With all these tries, I have copied the api_key to the text file and rebuilt the game. It just does not want to work. I have tried the sample app in the latest plugin as well and it has the same problem. Thanks for your help in advance.
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
Sorry, I just saw that you have raised the issue through ContactUs (case: 163774551) few days back. We have identified the issue already and fixing the issue in back end. We would reply to the case when the fix is live shortly. Thank you for your patience.
10 |5000

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

Ligrew avatar image
Ligrew answered
I have the same issue here... Any progress on this? It would be great if it was already done...
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 Ligrew, The issue should be resolved now. Since the account you are using for this posting does not have any app or security profile associated with it. I am unable to check whether you were in the affected list or not. But the issue is fixed from our end. Please check and get back in case for any issue,
10 |5000

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

E4 Software avatar image
E4 Software answered
I did receive a response through the support issue and something was done in the back end to fix the issue on my Kindle Fire HD and HDX. My app now magically works on the HD and HDX, but when I run it on my Kindle Fire 2nd Gen, it gives me a button to "Connect" and when I choose to connect, it takes me to a website to log in. When I enter my credentials to log in, then the browser gives me an error about not having the permissions to access the page. This basically means that I can not log in or "Connect" on the Kindle Fire. I realize that this is an older device, but I am sure there are still lots of them out there as they work just fine with my game and lots of other content out there. These are great devices and I would like to support GameCircle on them. Thanks for your 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.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi, GameCircle is supported in all Kindle devices available in the market. But the GameCircle SDK 2.x has a dependencies on the GameCircle Client which is installed in the device and comes with the Kindle OS. GameCircle Version 2.5.2500310 is minimum needed to be installed in the device. The current version can be determined on Kindle Fire HDX 8.9” and Kindle Fire HDX 7” by navigating to Settings->Applications->Manage All Applications->Amazon GameCircle. On Kindle Fire (1st Generation), Kindle Fire (Second Generation), Kindle Fire HD 7", and Kindle Fire HD 8.9", navigate to Settings->Applications->Installed Applications->Amazon GameCircle. If your Kindle Fire shows an earlier version of Amazon GameCircle, follow these steps to upgrade: Ensure the device is charged to at least 40%. Swipe down from the top of the screen to display the notification bar. Touch Sync. Leave your device turned on but idle.
10 |5000

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

istom avatar image
istom answered
Hello, I have the same problem, I've just registered a new game and I can only login as a guest. The older games work properly. It's the first game I've registered since the new design so I tought perhaps I missed something, I re-read the integration guide, I think everything is in order. My kindle (fire hd 8.9) has a GameCircle version 2.6.32-gen52607510, the system version is 8.4.8_user_489120. I upgraded to the 2.3 android GameCircle sdk, but i still can't log in. Here is the log: http://pastebin.com/z1SECsDy Is there something I forgot or I should check? Also with the new sdk the GameCircle overlay is not fullscreen.
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 istom, Thank you for reaching out. From log I can see that you are getting CANNOT_AUTHORIZE error from SDK. For a "CANNOT_AUTHORIZE" error, there are only 2 places to look: packageName and signature. For reference: You can generate your application's signature by using keytool, which comes with Java JDK. Please note the path to your keystore may vary depending on your operating system. For Macs it is typically located at /Users//.android/ and for Windows C:\Users\\.android\. You also need to verify you are using the correct password. For debug, use "android" to generate the keyhash. The tool should ask for a password, if it does not you have the wrong keystore path. (keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64) If you are still getting the "CANNOT_AUTHORIZE" error you can also use the Packagemanager Class to pull the signature from your app and place it in your log. Some developers do seem to have issues pulling the proper key value using the keytool. A basic example using the PackageManager: //Pull the signature public String getAppSignature(final String packageName) { Signature[] sigs; try { sigs = getPackageManager().getPackageInfo(packageName, PackageManager.GET_SIGNATURES).signatures; for (Signature sig : sigs) { MessageDigest md; md = MessageDigest.getInstance("SHA1"); md.update(sig.toByteArray()); String hash = new String(Base64.encode(md.digest(), 0)); return hash; } } catch (NameNotFoundException e) { Log.d(LOG_NAME, "Package Name Not Found"); e.printStackTrace(); } catch (NoSuchAlgorithmException e) { Log.d(LOG_NAME, "No Such Algorithm"); e.printStackTrace(); } Log.d(LOG_NAME, "AppSig Failed"); return null; } //Throw it in your log final String sig = getAppSignature(); if (sig != null) { Log.d(LOG_NAME, "Signature : " + sig); } For your connivance, I am sending a sample app integrated with GameCircle latest SDK. 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.