App getting refreshed on coming to foreground from background IOS 16.0.1 & iOS 16.0.2

Our app is getting crashed while in background and refreshes/reload on background to foreground transition too easily & frequently. This is happening for lot of other apps on devices on iOS 16.0.1 & 16.0.2. This is happening too frequently even when there are only couple of app opened in background. So definitely does not seem to be memory pressure issue. Some buggy camera app on 16.0.1 & 16.0.2 is causing this.

This is happening when we use camera app and as per steps below

  1. Keep our app in background.
  2. Open camera, take photo
  3. Open our app & and the app refreshes

Expected Behaviour: App should not refresh and restore itself to previous state.

Are you saying the app is literally crashing, or just that this is a “normal” termination by the OS while in the background? (Saying “normal” in quotes because you are reporting that it seems abnormally frequent and unexpected, even if the OS does have its own reasons for the termination.)

Is this happening only on iOS 16.0.1 and 16.0.2? Did it not happen in older versions? Does it no longer happen in newer versions?

If it stopped happening, then great. Or if it’s still happening, then consider it an opportunity to add or improve your app’s state restoration logic, to preserve the illusion of seamless background execution across termination events regardless of the cause. That’s a nice feature in any app.

App getting refreshed on coming to foreground from background IOS 16.0.1 & iOS 16.0.2
 
 
Q