Hi Kevin,
As per our tester, he explicitly ensured that the app was force-closed at the end of the day. However, as you correctly pointed out, the logs indicate that the app was never actually terminated by the system—it was moved to the background and then resumed the next morning.
The challenge we are facing is that certain functionality does not behave correctly when the app resumes the next day without a normal cold start. The primary issue is with the SLM (Sound Level Meter) framework, which relies on audio sessions. In these resumed states, the audio session is not always reinitialized cleanly, causing our calibration process to fail and leading to the core issue we observed.
To address this, we implemented a controlled, app-initiated exit in such scenarios to ensure the app always starts in a clean state. This approach resolved the issue successfully.
More recently, we encountered a case where we did not even receive the applicationDidEnterBackground callback. We extended the same force-exit handling to cover this scenario as well.
And We shared the corresponding sysdiagnose files to confirm whether this behavior is possible under MDM / Single App Mode conditions and to ensure that this approach is acceptable and would not negatively impact the app review or expected system behavior.
Please let us know if this aligns with expected platform behavior or if you see any concerns with this approach.
Thanks,
Manish Lalwani
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: