I want to inform my online DB that a player has disconnected from the web player (they closed Firefox or whatever), and send some stats along with that. But my JScript OnApplicationQuit handler which sends this WWW request seems to be causing problems. Mac/Firefox will often hang, or look like it's closed, but Firefox is still running and eating up resources. Windows/Chrome often crashes, although Windows/Firefox hasn't done that (yet). I did report this.
But I do need to get this event and data out to my server. Is there another option?
asked Feb 09 '11 at 12:38 AM
If Unity doesn't want to handle it for some reason, maybe you could make that final report from the webpage that is hosting the webplayer. Just make a quick Application.ExternalCall() or even Application.ExternalEval() to launch that final message-in-a-bottle?
answered Sep 10 '11 at 04:08 AM