4 ms·
Modern applications for Windows (UWP) and iOS do use tombstones. The app's memory itself is completely suspended/saved to disk, and then the state is restored.
by my123 6y ago
Modern applications for Windows (UWP) and iOS do use tombstones. The app's memory itself is completely suspended/saved to disk, and then the state is restored. The app startup code is _not_ called again.
- tinus_hn 6y agoIt has been a while since I wrote iOS app code but I’m pretty sure iOS does not, although the libraries provide a mechanism you have to save and restore state yourself. And iOS doesn’t swap, it just kills apps when it needs memory. Anyway, how would you handle connections to remote servers?
- astrange 6y agoiOS does sometimes swap, but only suspended processes, so you won't notice from inside the app.
- tinus_hn 6y agoSo how do you know? Is it documented somewhere? All I could find was one unclear mention that could also be about the automatic mechanisms built in to storyboards.
- astrange 6y agoProbably not. It's patented though. https://patents.google.com/patent/US9720617B2/en https://patents.google.com/patent/US9720617B2/en