Calling the upload method on OnApplicationQuit/OnApplicationPause works fine, but the stream seems to shut down after the application closes and the file isn't uploaded. Would there be a way to enforce that the player file is uploaded when they exit the application, or would it just need to be uploaded periodically throughout the game session instead?
I'm aware that the OnApplicationQuit methods aren't guaranteed to be called in case of crashes etc. but let's set that aside for now.
Thanks in advance!