Avoiding time out when playing for a long time

18 views
Skip to first unread message

Andreas

unread,
Jan 19, 2012, 5:19:10 AM1/19/12
to opensoci...@googlegroups.com
Hi,

I am developing a Flash based game and have noticed that it doesn't work to send a message or post a news feed when you have played the game for a while.

The Orkut message window doesn't open and the callback function is called immediately. I believe this is caused by the session timing out as the Orkut page is never reloaded, and the user stays in the game the whole time.

Does anyone have a good solution to this?

Thanks,

Andreas

Bruno Oliveira (Google)

unread,
Jan 20, 2012, 1:36:08 PM1/20/12
to opensoci...@googlegroups.com
Hello,

This is a known issue and there is currently no way to prevent the timeout from happening. If it does happen, what you can do is display a button for the user to click to reload the application. This button should be a link back to the application page.

(However, do not under any circumstances redirect the player automatically, since that will make AppReviewer conclude that the app is malicious and will delete it without any warning or notification)

-
Bruno Oliveira (Google)

Andreas

unread,
Jan 20, 2012, 4:24:02 PM1/20/12
to opensoci...@googlegroups.com
Thanks for the reply Bruno.

This must be a deal-breaker for many apps! I'm making a paint application, and when the users spend hours creating really cool art reloading the app is not going to work. 

There is no way to prevent this by calling an opensocial.newDataRequest from time to time?

How can I know if the time out has accured?

Thanks in advance.

/Andreas

Bruno Oliveira (Google)

unread,
Jan 24, 2012, 8:59:56 AM1/24/12
to opensoci...@googlegroups.com
Hello,

Currently there is no workaround for this, unfortunately. OpenSocial calls do not reset the timer.

What you can do is save the user's work on your server temporarily so that when they come back to the app after reloading (or even after disconnecting for a few hours or even days), they can continue where they left off.

-
Bruno Oliveira (Google)
Message has been deleted

Andreas Rehnberg

unread,
Jan 24, 2012, 9:02:39 AM1/24/12
to opensoci...@googlegroups.com
Thanks Bruno,

Is there a way for me to know when the time-out has occured, or do I have to check for errors when users are trying to do an openSocial call?

/Andreas

--
You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/opensocial-orkut/-/EW4ukEZ6SsgJ.

To post to this group, send email to opensoci...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-ork...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.

Bruno Oliveira (Google)

unread,
Jan 26, 2012, 4:13:55 PM1/26/12
to opensoci...@googlegroups.com
There is no direct way, you have to check for errors...

-
Bruno Oliveira (Google)
Reply all
Reply to author
Forward
0 new messages