
Is it possible to execute a function, specifically PATCH, when an app is closed (mobile app closed, browser window/tab closed, etc) without the App.ConfirmExit "are you sure?" logic? I want to essentially assume the user confirmed their desire to exit without prompting them, and to execute a PATCH statement before the app closes.
You cannot intercept the exit of the app except with the Confirm Exit action.
Usually, you would have a button or option or something in your app to actually do the closing and anything else you need. The purpose of the confirm exit is to inform the user (based on conditions) that they should use that option to exit and not simply exit the app raw.
I hope this is helpful for you.