question

stevenb27 avatar image
stevenb27 asked

Cannot use Game Circle after login

I can sign in and that all works, but as soon as I try to use it, it fails? Why? My Logcat is near useless as this is all I ever get from it when it fails: I/Unity (30769): AndroidJavaException: java.lang.NullPointerException I/Unity (30769): at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in :0 I/Unity (30769): at UnityEngine.AndroidJNISafe.CallVoidMethod (IntPtr obj, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in :0 I/Unity (30769): at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in :0 I/Unity (30769): at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.Object[] args) [0x00000] in :0 I/Unity (30769): at AmazonJavaWrapper.Call (System.String method, System.Object[] args) [0x00000] in :0 I/Unity (30769): at AGSLeaderboardsClient.ShowLeaderboardsOverlay () [0x00000] in :0 I/Unity (30769): at GoalTracker.ShowLeaderboards () [0x00000] in :0 I have quadruple checked my Manifest, though I may be looking for the wrong thing. The api_key is correct as far as I can tell. I am testing on a Samsung Galaxy S III. I have put my nickname as a test user. This does happen multiple times at the start of the app as well (replacing with my package id, of course): D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(30769): Signature checking.: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(30769): Fingerpirint checking: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(30769): scopes has no mapping in json, returning null array I/com.amazon.identity.auth.device.appid.APIKeyDecoder(30769): perm has no mapping in json, returning null array I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(30769): isAPIKeyValid : packageName= I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(30769): getAppInfo : packageName= I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(30769): Finding API Key for I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(30769): Attempting to parse API Key from assets directory I/com.amazon.identity.auth.device.appid.APIKeyDecoder(30769): Begin decoding API Key for packageName= D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(30769): APIKey: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(30769): num sigs = 1 Message was edited by: stevenb27
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
serviceReadyHandler() is called when the initialization is successful. Make sure the you get a service ready call back, before you call api for submitting score or updating achievement.
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.

stevenb27 avatar image
stevenb27 answered
Hey, thanks for the reply, I am getting signin & welcome back prompts seconds before I attempt any of this. Would these not be going off after the serviceReadyHandler fires? Also I use .isServiceReady() before doing any function calls and my Logcat reports serviceReadyHandler going off as well.
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
Can you check with basic application which has AmazonGameCircleManager. Add the GameCircleManager game object to your scene. Write a script with simple hardcore value to submit score. So that we can isolate the problem. Make sure you are signed (if the initialization pop up ask for) Make sure the security profile is linked with gamecircle configuration in distribution portal make sure your nick name is added in portal to test and access the leaderboard.
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.