3 ms·
Ios is a bit weird. The developer is required to free up resources. If they don’t the app will get killed. https://developer.apple.com/documentation/uikit/app_
by geoah 5y ago
Ios is a bit weird. The developer is required to free up resources. If they don’t the app will get killed.
https://developer.apple.com/documentation/uikit/app_and_environment/scenes/preparing_your_ui_to_run_in_the_background https://developer.apple.com/documentation/uikit/app_and_envi...
> When your app transitions to the background, release memory and free up any shared resources your app is holding. For an app transitioning from the foreground to the background, freeing up memory is especially important. The foreground has priority over memory and other system resources, and the system terminates background apps as needed to make those resources available. Even if your app wasn’t in the foreground, perform checks to ensure that it consumes as few resources as possible.
> Make sure your app is not holding any shared system resources when it transitions to the background. If it continues accessing resources like the camera or a shared system database after transitioning to the background, the system terminates your app to free up that resource.