Here's an idea. Add a quit button, and see if it works after quitting the app cleanly.
If it saves the data on exit, then this should work.
The application lifecycle stuff is still not completed as far as I am aware. This means that when you close an app, you are literally just killing it, and anything that should run on exit will never be run.
If that turns out to be the case, then just don't worry about it, it should be fixed when the lifecycle stuff is fully functioning.
Here's an idea. Add a quit button, and see if it works after quitting the app cleanly.
If it saves the data on exit, then this should work.
The application lifecycle stuff is still not completed as far as I am aware. This means that when you close an app, you are literally just killing it, and anything that should run on exit will never be run.
If that turns out to be the case, then just don't worry about it, it should be fixed when the lifecycle stuff is fully functioning.