Apps closed in background without crashlog or hint

Knows anyone a point in systemlog etc. To find out when and why my or other apps are terminated by os. At the moment a lot of apps inclusive my apps seems to be terminated instead set to sleep by OS if no power coord is connected

There are no crashlogs recorded, Sentry or firebase don‘t report issues.

Answered by DTS Engineer in 874770022

Termination in the background is part of the normal iOS app lifecycle. When the user moves your app to the background, the system typically suspends it. After that, if the system gets low on resources, typically memory, it’ll terminate your app, thus removing it from memory.

This is absolutely normal; iOS has behaved this way since we introduced multitasking.

This doesn’t generate a crash report because the app hasn’t crashed.

The system tends to terminate apps that are using more memory, so one way to reduce the chances of this happening to your app is to reduce your memory footprint as you move into the background. If you’d like to explore that option, check out Making changes to reduce memory use.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Termination in the background is part of the normal iOS app lifecycle. When the user moves your app to the background, the system typically suspends it. After that, if the system gets low on resources, typically memory, it’ll terminate your app, thus removing it from memory.

This is absolutely normal; iOS has behaved this way since we introduced multitasking.

This doesn’t generate a crash report because the app hasn’t crashed.

The system tends to terminate apps that are using more memory, so one way to reduce the chances of this happening to your app is to reduce your memory footprint as you move into the background. If you’d like to explore that option, check out Making changes to reduce memory use.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I find this termination behavior too aggressive, and rewriting code to restore the previous state requires additional time and testing. Some apps remain visible in the App Overview but restart completely after being reopened. That’s not good user experience and feels unlike Apple’s usual standards, which seem to be declining in this regard. On a Mac or other computers, multiple apps can stay open without being restarted. iPhones have plenty of storage to save an app’s background data to disk instead of relying solely on RAM.

I find this termination behavior too aggressive

My role here on the forums is to help developers create products for Apple platforms as they currently stand. If you’d like to see things change in this space, you are free to file a bug report [1] describing what you’d like to see change. See my Bug Reporting: How and Why? post for more details about that process.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Or enhancement request. In cases like this the distinction is one of perspective.

Apps closed in background without crashlog or hint
 
 
Q