question

Pompi avatar image
Pompi asked

How do I listen to a "GameCircle event"?

I have implemented GameCircle for Android and Fire Devices. My Kindle and Fire Phone build was rejected because after returning from GameCircle the game lost it's state. " Bug Description:App is Unstable. Steps to Reproduce: 1.Install and launch the app 2.Select any track(say 1st track) 3.Play the race for 15-20 seconds 4.Invoke settings bar and tap on Amazon game circle icon 5.Game circle overlay appears,close the overlay Actual result:App exits from the race to app home screen Expected result:App should resume the race in progress , it should not exit to app home screen" The issue is that I don't have a Fire Device apart from the FireTV. It appears that you can somehow run GameCircle from the Phone's Amazon options so when that happens my App doesn't save the state of the game. Not sure really since my app does save the game state when going into onPause. Since I can't really test this, I wonder how can I tell that GameCircle was started externally to the options menu of my game and if I can listen to this even and save the game's state there? Actually this doesn't make sense, the game's state is saved when entering onPause, so what could invoke GameCircle without invoking onPause? And even then, I am not sure why would it return to the menu screen without onResume or without pressing the back(and tapping yes to quit?)?
10 |5000

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

Pompi avatar image
Pompi answered
As far as I recall the issue was the getting out of my app to start gamecircle my app crashed. And thus nothing was saved properly and it exit the app.
10 |5000

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

Nick Gardner avatar image
Nick Gardner answered
Thanks for the information. Hopefully it will be helpful for other people trying to implement GameCircle. -Nick
10 |5000

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