question

techtree avatar image
techtree asked

Unity Game Circle

I have implemented Game Circle in our app according to the documents provided. When I run the apk on the device it works fine, but when I upload it to the store and download it , then game circle doesnt even intialise . I can find anything on this forum or google. Please 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.

Nick Gardner avatar image
Nick Gardner answered
Hi, I would suggest checking your API keys in the developer portal to make sure the app signature is correct. Many developers use different signing keys for the debug and release versions of their app, and if you don't have both of those in there, GameCircle will not work properly. If that is not the issue, can you please post the logcat of your device when you launch your app? Thanks, Nick
10 |5000

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

techtree avatar image
techtree answered
The commands in this link do not give me the MD5 signature, it gives SHA1. https://developer.amazon.com/public/apis/engage/gamecircle/docs/create-a-gamecircle-configuration Using this command keytool.exe -V -list -alias androiddebugkey -keystore "C:\Users\myname\.android" -storepass android -keypass android gives me the MD5 signature . There are no 2 versions to it i.e debug and release. Here is the logcat:_ 11-19 12:30:08.038: D/GameCircleClient(5250): SDK Version: 2.4.2 11-19 12:30:08.038: D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.PII(5250): AmazonAuthorizationManager:sdkVer=1.0.0 libVer=3.3.0: 11-19 12:30:08.038: I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(5250): Options bundle is null 11-19 12:30:08.038: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(5250): getAppInfo : packageName=com.techtreeit.bmh.amazon 11-19 12:30:08.038: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(5250): Finding API Key for com.techtreeit.bmh.amazon 11-19 12:30:08.062: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(5250): Attempting to parse API Key from assets directory 11-19 12:30:08.062: I/Unity(5250): startAlarm... 11-19 12:30:08.062: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): Begin decoding API Key for packageName=com.techtreeit.bmh.amazon 11-19 12:30:08.062: I/Unity(5250): alarm time +86400000 11-19 12:30:08.069: I/Unity(5250): startAlarm... 11-19 12:30:08.069: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(5250): APIKey: 11-19 12:30:08.069: I/Unity(5250): alarm time +86400000 11-19 12:30:08.069: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): num sigs = 1 11-19 12:30:08.069: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(5250): Signature checking.: 11-19 12:30:08.069: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(5250): Fingerpirint checking: 11-19 12:30:08.077: I/Unity(5250): startAlarm... 11-19 12:30:08.077: I/Unity(5250): alarm time +86400000 11-19 12:30:08.085: I/Unity(5250): startAlarm... 11-19 12:30:08.085: I/Unity(5250): alarm time +86400000 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): Failed to decode: Decoding fails: certificate fingerprint can't be verified! 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): java.lang.SecurityException: Decoding fails: certificate fingerprint can't be verified! 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at com.amazon.identity.auth.device.appid.APIKeyDecoder.verifyPayload(APIKeyDecoder.java:332) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at com.amazon.identity.auth.device.appid.APIKeyDecoder.doDecode(APIKeyDecoder.java:127) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at com.amazon.identity.auth.device.appid.APIKeyDecoder.decode(APIKeyDecoder.java:91) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at com.amazon.identity.auth.device.appid.AbstractAppIdentifier.getAppInfo(AbstractAppIdentifier.java:85) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager. (AmazonAuthorizationManager.java:123) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:144) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at com.amazon.ags.api.unity.AmazonGamesClientProxyImpl$1.run(AmazonGamesClientProxyImpl.java:68) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at android.os.Handler.handleCallback(Handler.java:755) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at android.os.Handler.dispatchMessage(Handler.java:95) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at android.os.Looper.loop(Looper.java:145) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at android.app.ActivityThread.main(ActivityThread.java:5266) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at java.lang.reflect.Method.invokeNative(Native Method) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at java.lang.reflect.Method.invoke(Method.java:515) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:826) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:642) 11-19 12:30:08.108: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(5250): at dalvik.system.NativeStart.main(Native Method) 11-19 12:30:08.108: E/GameCircleClient(5250): Unable to read api key. GameCircle requires an api key to be included in 'assets/api_key.txt'. GameCircle will not initialize. 11-19 12:30:08.108: E/GameCircleClient(5250): java.lang.IllegalArgumentException: Invalid API Key 11-19 12:30:08.108: E/GameCircleClient(5250): at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager. (AmazonAuthorizationManager.java:126) 11-19 12:30:08.108: E/GameCircleClient(5250): at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:144) 11-19 12:30:08.108: E/GameCircleClient(5250): at com.amazon.ags.api.unity.AmazonGamesClientProxyImpl$1.run(AmazonGamesClientProxyImpl.java:68) 11-19 12:30:08.108: E/GameCircleClient(5250): at android.os.Handler.handleCallback(Handler.java:755) 11-19 12:30:08.108: E/GameCircleClient(5250): at android.os.Handler.dispatchMessage(Handler.java:95) 11-19 12:30:08.108: E/GameCircleClient(5250): at android.os.Looper.loop(Looper.java:145) 11-19 12:30:08.108: E/GameCircleClient(5250): at android.app.ActivityThread.main(ActivityThread.java:5266) 11-19 12:30:08.108: E/GameCircleClient(5250): at java.lang.reflect.Method.invokeNative(Native Method) 11-19 12:30:08.108: E/GameCircleClient(5250): at java.lang.reflect.Method.invoke(Method.java:515) 11-19 12:30:08.108: E/GameCircleClient(5250): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:826) 11-19 12:30:08.108: E/GameCircleClient(5250): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:642) 11-19 12:30:08.108: E/GameCircleClient(5250): at dalvik.system.NativeStart.main(Native Method) 11-19 12:30:08.108: E/Whispersync(5250): Whispersync client has not been initialized. Please call AmazonGames.initialize() 11-19 12:30:08.108: E/WS_WhispersyncClientProxyImpl(5250): Whispersync client is null. Cannot set event listener. Please call initialize for AmazonGames.
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
Based on that log it does look like some sort of package name or signature issue. The client is able to find the API key, but it decodes it and there's a mismatch somewhere. Are you generating a signed APK? If so, are you sure that you're using the androiddebugkey? Usually the release keys would be named something else. -Nick
10 |5000

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

techtree avatar image
techtree answered
Yes , I have tried uploading using both keystores too ,(android debug keystore and the keystore I am using ) but still no luck . My team lead has contactefd your support team , lets hope they reply soon
10 |5000

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