Run action before sending app to background or close app

Is there a way to run an action before an Ionic Vue app is closed or send to background?

If you’re using Capacitor, you could try the appStateChange listener.

Thank you - that was the “problem” :wink: I was looking in the Ionic Documentation, not the Capacitor Documentation…

Thank you for your help!