Detecting Active/Inactive State Changes in Bounded Apps

I am looking into how to obtain active and inactive events for a bounded application.
In a shared space where multiple apps coexist, knowing whether an app is active or not is crucial.

I’ve tried using MonoBehaviour.OnApplicationPause(bool) but was unable to receive any events.
Is there a better approach available?

Additionally, I have confirmed that in Window mode, OnApplicationPause() is called at the moment when the app’s active state changes.

Any assistance would be greatly appreciated.

2 Likes