question

mvsvnx avatar image
mvsvnx asked

Game Circle Initialization failed

I create a new Game, connect it to Security Profile. @Override protected void onResume() { super.onResume(); AmazonGamesClient.initialize(this, this, EnumSet.of(AmazonGamesFeature.Achievements, AmazonGamesFeature.Leaderboards)); } @Override public void onServiceReady(AmazonGamesClient amazonGamesClient) { agsClient = amazonGamesClient; agsClient.setPopUpLocation(PopUpLocation.TOP_CENTER); agsClient.initializeJni(); } Here are logs. Request: GET https://ags-ext.amazon.com/services/featuredetection/getFeaturesUsage?GameId=amzn1.application.073d917dce56488d9f4c19a379317d89&locale=en_GB&gameId=amzn1.application.073d917dce56488d9f4c19a379317d89 Request: PUT https://ags-ext.amazon.com/service/achievements/getAchievementsPublic Request: PUT https://ags-ext.amazon.com/service/leaderboards/getLeaderboardsForGamePublic Processing request [backgroundwebview-18] for call type [isKindle] Returning reply [{"value":true}] for request [backgroundwebview-18] Processing request [backgroundwebview-19] for call type [isKindleRegistered] Client is bound to service Attempting to check is authenticated Returning reply [{"value":true}] for request [backgroundwebview-19] Processing request [backgroundwebview-20] for call type [isGCServiceReady] Returning reply [{"value":false}] for request [backgroundwebview-20] Processing request [backgroundwebview-21] for call type [hasOptedIn] Returning reply [{"value":false}] for request [backgroundwebview-21] Successful submission of 14 events Event: '_http...' recorded to local filestore GC_CONCURRENT freed 540K, 15.00% free 10856K/12743K, paused 4ms+2ms GC_CONCURRENT freed 512K, 15.00% free 10985K/12807K, paused 1ms+5ms Entering addToWindow... Total arena pages for JIT: 11 Total arena pages for JIT: 12 Total arena pages for JIT: 13 Total arena pages for JIT: 14 Total arena pages for JIT: 15 Total arena pages for JIT: 16 Total arena pages for JIT: 17 Event: 'PageV...' recorded to local filestore Result:HTTP/1.1 400 Bad Request Result:HTTP/1.1 200 OK Network request ID for failed request: aad1a789-9dfd-11e3-be96-0dedb56f3cd8 Exception encountered while executing request: com.amazon.ags.AGSServiceException: Bad Request com.amazon.ags.AGSServiceException: Bad Request at com.amazon.ags.html5.comm.NetworkCallFactory.createRequestResult(NetworkCallFactory.java:232) at com.amazon.ags.html5.comm.NetworkCallFactory.handleServiceRequest(NetworkCallFactory.java:149) at com.amazon.ags.html5.comm.NetworkCallFactory.handleMessage(NetworkCallFactory.java:114) at com.amazon.ags.html5.javascript.CallHandlerBase.handleMessage(CallHandlerBase.java:61) at com.amazon.ags.html5.javascript.domain.JavascriptInterface$8.run(JavascriptInterface.java:235) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) at java.lang.Thread.run(Thread.java:856) Event: 'GameC...' recorded to local filestore Event: 'GameC...' recorded to local filestore Total arena pages for JIT: 18 JS(line 2): Uncaught TypeError: Cannot read property 'achievements' of null GC_CONCURRENT freed 606K, 15.00% free 11051K/12999K, paused 2ms+4ms Result:HTTP/1.1 200 OK Event: 'GameC...' recorded to local filestore JS(line 16): Uncaught TypeError: Cannot read property 'length' of null Event: 'GameC...' recorded to local filestore Entering runnable for hide() Request 08f7e74f-4137-41cf-a604-3310d3ed5044 timed out. request https://ags-ext.amazon.com/services/featuredetection/getFeaturesUsage?gameId=amzn1.application.073d917dce56488d9f4c19a379317d89 return null. If i change id here for another my fame it works try it https://ags-ext.amazon.com/services/featuredetection/getFeaturesUsage?gameId=amzn1.application.b9c1158edbca4ae69232812192efb11b any suggestions? thank you
10 |5000

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

mvsvnx avatar image
mvsvnx answered
now it works fine. thank you! Message was edited by: mvsvnx
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 Mvsvnx, https://ags-ext.amazon.com/services/featuredetection/getFeaturesUsage?gameId=amzn1.application.073d917dce56488d9f4c19a379317d89 returns below response. {"featuresList":[{"featureEnabled":false,"featureId":"achievements"},{"featureEnabled":false,"featureId":"leaderboards"},{"featureEnabled":false,"featureId":"whispersync"}]} https://ags-ext.amazon.com/services/featuredetection/getFeaturesUsage?gameId=amzn1.application.b9c1158edbca4ae69232812192efb11b returns below response. {"featuresList":[{"featureEnabled":false,"featureId":"achievements"},{"featureEnabled":true,"featureId":"leaderboards"},{"featureEnabled":false,"featureId":"whispersync"}]} I did not understand your problem. 1. Are you not getting callback on onServiceReady()? 2. Why do you call initializeJni() from onServiceReady()? 3. What is result of AGSServiceException being thrown? Is it crashing your app? Or GameCircle is not working correctly?
10 |5000

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

mvsvnx avatar image
mvsvnx answered
Now it worked correctly. Thank you. You can delete this topic.
10 |5000

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

mvsvnx avatar image
mvsvnx answered
10 |5000

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