User returning to the app after closing the browser

Hello,

In our application we open a browser and need to recognize when the user has closed it. So far, we have been using OnApplicationFocus on HoloLens to recognize when the user has closed the browser and returned to the application. But when testing on ML2, I see that opening and closing the browser does not affect application focus. Is there some other function we can use for this case?

Unity Editor version: 2022.2.6f1
ML2 OS version: 1.2.0-dev2
Host OS: Windows

Hi @mnylund Thank you for your post and welcome to the Magic Leap 2 Forum community. I believe OnApplicationPause() may be what you're looking for. Please let me know if this helps.

Thank you, @kdowney! That resolved my issue

1 Like

Glad to hear it @mnylund, and best of luck in your project.