question

jianghuafan avatar image
jianghuafan asked

callBack when pressing device back button on Login Screen (unity)

I hava a question when integrated Amazon unity GemeCircle plugin, it look like http://forums.developer.amazon.com/forums/thread.jspa?messageID=9920 I noticed that when user login successfully and back to game, ServiceReadyEvent will be called, then check the signed in status by AGSPlayerClient.IsSignedIn(), signed in status is still false. so I can't use this way to check whether user press device back button. I also noticed that when first login gamecircle, if click login button will popup a view and tell user whether sign in to amazon, if user click sign in to Amazon button, ServiceReadyEvent will be called and then popup a login web view. If i use that way to check sigined status, I'll mistaken for a user clicks the back button so there are some way to Indicating the user press the back button
10 |5000

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

jianghuafan avatar image
jianghuafan answered
We are trying to use amazon user ID to save the game for the player, and we found out the amazon will take a long time to get authetication message successful and yet no return messages for cancel or user login failed. Anyone can help us?
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
As gamecircle uses asynchronous callbacks, you shouldn't need to wait for the user to log in, your application can do other things in the meantime and simply process the callbacks at the time they happen. Since users may need to enter their username and password to log in, there is an indeterminate amount of time to log in, so you should not rely on that process being short. Thanks, 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.

jianghuafan avatar image
jianghuafan answered
Our game designers want to use the amazon account as our game ID. so I have to wait for the user login in.
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
Hi, You could use our IAP library to get more deterministic user data, but that functionality is not available in GameCircle directly. Thanks, 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.