Quitting Application During a Save Operation In Unity

0 votes
First I'll ask my question:

Saving data for my game to the cloud takes roughly five seconds.  There are multiple stages in which the save takes place.  I chain callbacks so operations complete before the next is called.  As an example:

1. find json document, callback 1

2. Retrieve document with successful callback 1 and delete document found, callback 2

3. Successful callback 2 finds second document, callback 3

4.  Callback 3 deletes second found document, callback 4

5.  Callback 4 inserts new document to another collection, callback 5

6.  Callback 5 returns successful save

So here's my question again, if I quit my app during step, let's say, 4, will the app continue until step 6 regardless or will it stop immediately at step 4?
asked Nov 6, 2015 in App42 Cloud API-BaaS by null (23 points)

1 Answer

+1 vote

Hello Developer,

 

Apologies for getting late back to you

To answer your query, it will depend on the quit process as well as on OS in which your app is running. If you just click home screen button to quit the process then by default OS will give some time to complete your job on the background if background task is allowed. 

Please let me know your complete use case, it will help me to provide better support to you.

Regards,

Himanshu Sharma 

 

answered Nov 9, 2015 by hs00105 (2,005 points)
Good!  Thanks!
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...