question

Taras leskiv avatar image
Taras leskiv asked

Amazon Game Circle Does not work in production (Unity3d)

I have a problem with GameCircle integration in Unity3d. The thing is I have configured GameCircle and when I launch my APK (release, signed with production keystore) on my device, everything works perfect - No errors at all! Then I upload the same APK file to the store, and it doesn't work. I've added all the libraries and followed the instructions. Please tell me where is my mistake. Posting logs below (game from store). I am more interested why does it work on my device when I push my production APK to device. And why the same APK does not work in prod. - My api_key.txt is fine (i've checked it) This is my game http://www.amazon.com/gp/product/B00I4Z11KQ - you can also read logs yourself - what's different between release apk and the same apk from market? From AndroidManifest.xml Device logs: 02-19 06:49:06.577: W/dalvikvm(2190): No implementation found for native Lcom/amazon/ags/jni/AGSJniHandler;.isLoaded ()V 02-19 06:49:06.631: W/FlurryAgent(2190): FlurryDataSender: report 94aed59c-38f2-4d19-aff9-844839e26d01 sent. HTTP response: 200 : OK 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): Failed to decode: Decoding fails: certificate fingerprint can't be verified! 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): java.lang.SecurityException: Decoding fails: certificate fingerprint can't be verified! 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at com.amazon.identity.auth.device.appid.APIKeyDecoder.verifyPayload(APIKeyDecoder.java:332) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at com.amazon.identity.auth.device.appid.APIKeyDecoder.doDecode(APIKeyDecoder.java:127) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at com.amazon.identity.auth.device.appid.APIKeyDecoder.decode(APIKeyDecoder.java:91) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at com.amazon.identity.auth.device.appid.AbstractAppIdentifier.getAppInfo(AbstractAppIdentifier.java:85) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager. (AmazonAuthorizationManager.java:123) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:131) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at com.amazon.ags.api.unity.AmazonGamesClientProxyImpl$1.run(AmazonGamesClientProxyImpl.java:67) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at android.os.Handler.handleCallback(Handler.java:587) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at android.os.Handler.dispatchMessage(Handler.java:92) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at android.os.Looper.loop(Looper.java:130) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at android.app.ActivityThread.main(ActivityThread.java:3683) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at java.lang.reflect.Method.invokeNative(Native Method) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at java.lang.reflect.Method.invoke(Method.java:507) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) 02-19 06:49:06.733: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(2190): at dalvik.system.NativeStart.main(Native Method) 02-19 06:49:06.733: E/GameCircleClient(2190): Unable to read api key. GameCircle requires an api key to be included in 'assets/ api_key.txt'. GameCircle will not initialize. 02-19 06:49:06.733: E/GameCircleClient(2190): java.lang.IllegalArgumentException: Invalid API Key 02-19 06:49:06.733: E/GameCircleClient(2190): at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager. (AmazonAuthorizationManager.java:126) 02-19 06:49:06.733: E/GameCircleClient(2190): at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:131) 02-19 06:49:06.733: E/GameCircleClient(2190): at com.amazon.ags.api.unity.AmazonGamesClientProxyImpl$1.run(AmazonGamesClientProxyImpl.java:67) 02-19 06:49:06.733: E/GameCircleClient(2190): at android.os.Handler.handleCallback(Handler.java:587) 02-19 06:49:06.733: E/GameCircleClient(2190): at android.os.Handler.dispatchMessage(Handler.java:92) 02-19 06:49:06.733: E/GameCircleClient(2190): at android.os.Looper.loop(Looper.java:130) 02-19 06:49:06.733: E/GameCircleClient(2190): at android.app.ActivityThread.main(ActivityThread.java:3683) 02-19 06:49:06.733: E/GameCircleClient(2190): at java.lang.reflect.Method.invokeNative(Native Method) 02-19 06:49:06.733: E/GameCircleClient(2190): at java.lang.reflect.Method.invoke(Method.java:507) 02-19 06:49:06.733: E/GameCircleClient(2190): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850) 02-19 06:49:06.733: E/GameCircleClient(2190): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608) 02-19 06:49:06.733: E/GameCircleClient(2190): at dalvik.system.NativeStart.main(Native Method)
10 |5000

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 will not work on any device until you associate the security profile with the application on the Distribution Portal and resubmit their app. Please follow the below steps for attaching security profile and resubmit your app in distribution portal. 1)Login into developer portal 2)Click on Apps&Services 3)Click on your App name 4)Under the App name click on security profile Tab 4) Attach corresponding security profile
10 |5000

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

Taras leskiv avatar image
Taras leskiv answered
Thanks! Message was edited by: Taras leskiv
10 |5000

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