Memory management kills app

Hi,

we have a problem with our app. Our app consumes a lot of memory and when it goes to the background usually it's terminated/killed by system because memory needs to be released. I know that memory management in iOS takes care about it. I would like to know if there is some option how to avoid this because initial process when app is loading takes few minutes.


Thanks for any advice

Replies

I would like to know if there is some option how to avoid this …

Not directly. The best approach here is to minimise your app’s memory use as you go into the background. That reduces the change of iOS choosing to evict your app when the system is under memory pressure. I also recommend that you:

  • Work on reducing your launch time

  • Implement state restoration properly

Both of these are useful features in and of themselves, but they particularly help reduce the impact of you getting evicted from memory.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"