question

candycaneapps avatar image
candycaneapps asked

How to detect if device is supported for GameCircle

Is there any generally suggested way to find out if a device is supported by GameCircle and that way enable/disable on devices that do not support it?
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.

Anshul@Amazon avatar image
Anshul@Amazon answered
Currently GameCircle is only supported on Kindle Fire devices. As per our FAQ, we suggest you can either make one binary that handles both environments (Kindle and general Android), or you can make a separate binary for each environment. Its developer choice to either gracefully degrade your app for GameCircle on non-Amazon devices or have separted binaries. For more information on GameCircle pls refer our GameCircle FAQ at https://developer.amazon.com/sdk/gamecircle/reference/faq/gamecircle-faq.html
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.

Aaron Pulkka avatar image
Aaron Pulkka answered
We have the same question as the original poster, which is not answered in the response above. What is the best way to detect if the device supports GameCircle? We want to use one APK for both Kindle and other Android devices, but want to display a button to access the GameCircle leaderboards/achievements for devices that support it. Using the Unity Plugin, what is the best way to detect whether or not the device supports GameCircle?
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.

Anshul@Amazon avatar image
Anshul@Amazon answered
The Amazon GameCircle feature is only supported on Amazon devices. For Non-Amazon devices, please gracefully degrade your app by disabling the GameCircle UI/buttons. Whenever we initialize the GameCircle, a asynchronous callback is registered. For Non-Amazon devices, the callback object will be notified by calling the onServiceNotReady() function with the reason code "CANNOT_BIND". Please refer to the GameCircle setup documentation https://developer.amazon.com/sdk/gamecircle/documentation/gamecircle-setup.html for further information on initializing Amazon GameCircle in your app.
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.

Arlin@Noodlecake avatar image
Arlin@Noodlecake answered
This may be helpful for both @candycaneapps and @rabbx. I've asked similar questions in the past; what we have ended up doing, is always assuming that initially, GameCircle is disabled. Then we wait for onServiceReady() to be called, and enabled it (along with buttons etc). Previously we had been enabling, then disabling. But we were having an issue where onServiceNotReady() was not being called: https://forums.developer.amazon.com/forums/thread.jspa?threadID=306&tstart=0 ... Sadly it appears that neither callback are guaranteed to return. I'm not sure if this will be the same strategy to take for Unity, but it is a start.
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.