question

Alexander avatar image
Alexander asked

AmazonGamesClient.initialize(...) - no callback

Hi all! I have a strange behavior of AmazonGamesClient.initialize procedure. (SDK2.0) According to manual i put it to onResume method of my activity: @Override protected void onResume() { super.onResume(); AmazonGamesClient.initialize(mWorkingContext, agsGameCallback, agsGameFeatures); } After the application is started, the login panel appears normal. I can log in to my amazon account and after that there will appear a welcome panel. I can get to achievements page by tapping on it. BUT there is no callback event triggered! Not agsGameCallback.onServiceNotReady(...), not agsGameCallback.onServiceReady(...). What am i doing wrong? Code in activity module and AndroidManifest: https://docs.google.com/document/d/1lNzAG_1y0L_RIPZfGeMVegSnycOQBPjDvS6GHnQjJNg/edit?usp=sharing
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.

Alexander avatar image
Alexander answered
I make a small test app and all work fine for it... a main diffirence in Logcat is a several strings like that: W/GC_AsynchronousReplyMessenger(28771): No pending message found for message id cd182a1f-f298-4a07-8d72-a90816f9415e What does it mean? And what can be a reason for such behaviour?
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 Alexander, Thank you for posting. Actually you need to setup the environment in order to work Game Circle 2.0 work properly. I have seen your manifest and source. Those seem to fine. Have you set the GameCircle sdk and it's dependency properly inside your project? Below is the link to follow to setup GC 2.0 environment https://developer.amazon.com/sdk/gamecircle/documentation/gamecircle-init.html. Specifically, Have you done this what is mentioned in this section : https://developer.amazon.com/sdk/gamecircle/documentation/gamecircle-init.html#Section3 If you see the App-SDK zip, you would find GameCircle\GameCircleSDK\ folder there and there are three folders (res,libs and jni) what are needed to be set to you project. You can do that by following the "Section3" part in the above link if you are using Eclipse. If not, you can manually copy those three folders in your project and build. After that you should get callback on onServiceReady() after you initialize the AmazonGamesClient. Hope this helps.
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.