App store guideline: "app state is saved..."?

How is this achieved with Ionic/Cordova?

“App state is saved when stopping the app and restored on next start”

Using Local Storage, in my opinion.