question

Kenneth Poon avatar image
Kenneth Poon asked

WhisperSync Client is null

Hi guys, is it normal that AmazonGamesClient.getWhispersyncClient() is null?

According to the amazon api, "Whispersync data is always accessible, even when the player is not registered with Amazon or is offline."

But this doesn't seem to be true.

I was using appXplorer to test my app, and it crashes right at the following line because getWhispersyncClient is null:

AmazonGamesClient.getWhispersyncClient().getGameData();

Thanks for your help in advance!

login with amazongamecirclewhispersync
10 |5000

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

Amazon Customer avatar image
Amazon Customer answered

I am seeing a similar problem in Unity. No matter what attempts I make to init/connect/synchronize the clients, this code:

this.data = AGSWhispersyncClient.GetGameData ();

Always returns null in the windows unity editor player. Sideloading the app on the FireTV seems to not want to connect to the services at all, due to an issue between Sideloaded apps and GameCircle.

10 |5000

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

DougM@Amazon avatar image
DougM@Amazon answered

Hello,

The GameCircle plugin for Unity is not designed to work within the Editor. You will need to load it on a device, and from there you will want to make sure that the AmazonGameCircleManager object is in your scene, and that your manifest entries are correct etc. Please follow the Setting Up Unity and Integrating GameCircle Features in your Games document at : https://developer.amazon.com/public/apis/engage/gamecircle/docs/unity-setup

and if you are still experiencing issues, please give us a sample project that you have setup and ADB logcat output such that we can help investigate the problem.

10 |5000

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