Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Write Google Saved Games on pause or quit

Discussion in 'Android' started by Asse83, Jul 15, 2015.

  1. Asse83

    Asse83

    Joined:
    Aug 1, 2009
    Posts:
    169
    Hey folks,

    currently we also write our savegame data when OnApplicationQuit() or OnApplicationFocus(false) gets triggered. Our own threaded writing and the Google Cloud Save API work great for both methods.

    Now that Google Cloud will be read-only from September 30th we had to migrate to Google Saved Games API which has problems writing the progress in both methods. I guess it's mainly because you have to open the save game for write and write into it when the opened-callback has been triggered, which never will (or only after the application regains focus). Also there are some timeout-errors when writing the progress on application quit.

    Now does anybody has a practical solution for writing to Google Saved Games when the applicationen quits or gets put to the background? And no, I don't want to cancel the application quit and trigger it after write has finished ;-)

    Many thanks in advance!
     
  2. fundoozzz

    fundoozzz

    Joined:
    Jul 22, 2015
    Posts:
    7
    Even I am facing the same issue and would like to know the solution for the same.
    Thanks
     
unityunity