playtomic/gameapi-unity — pull request #1 by ricardojmendez (2011-12-26 14:39:50+00:00)
Title: Caching requests, fixed bugs

- FEATURE: Saving pending requests on application quit.
- FEATURE: Handling errors sending data by adding the messages to a send
error queue. Items in this queue will be sent out on ForceSend and
saved on application quit. Items are NOT added on error by default,
to avoid changing behavior for people. You must set

Playtomic.Log.CacheOnError = true;

to enable.
- BUGFIX: GetCookie verified if a player preference existed but without
pre-pending the Playtomic preference prefix, so it always returned 0.
- BUGFIX: Since Playtomic caches the requests until it has at least
300 characters to send, that meant that the last few logs were always
being lost on quit. Saving them on application quit to the preferences
file.
- BUGFIX: Playtomic_Log was initializing the request on View(), which
means that an attempt at sending without calling View() would result
in a NRE. Initializing on the constructor.

Sorry about the large changeset on Playtomic_Log.cs - line endings were giving me issues when diff'ing.