We have an Ionic 6 / Capacitor 4 / Angular 12 app.
I’m seeing a different behaviour (on certain devices only) when the app re-starts depending on the cause of the restart.
If I close the app and open it (i.e the onResume lifecycle is activating) the app works ok and behaves ok on all devices.
If I swipe-close the app manually myself and re-open it the app works on all devices.
If I open that app after a period of X hours and re-open it AND in the meantime the OS has decided to close the app, on some devices (my iPhone SE for example) - the app behaves differently and fails (a call to secure storage in a 3rd party auth library is failing to get a token)
As far as I’m concerned the second and third use-cases are identical - the app is closed fully and is starting up. But I’m seeing a different behaviour. Are there differences between these two scenarios as far as the app is concerned?