About application lifecycle

Our application uses SystemChannels.lifecycle.setMessageHandler to detect lifecycle events (e.g., transitioning from background to foreground) and invoke appropriate methods.

We have noticed that, on some iOS devices, the AppLifecycleState.resumed state is being detected even when restarting the app after it was previously terminated. However, this behavior differs depending on the iOS device. For example, on an iPhone X (iOS 16.5.1), the resumed state is not detected upon restarting the app, but on an iPhone 13 (iOS 18.5), the resumed state is detected.

What could be causing this discrepancy?

If anyone has information or insight about this, we would greatly appreciate your help.

Thank you for reading.