How to close app

hi everybody. please i want to know how if there is any code i can use to close app
Example… the user click a button on the screen and the app close… thanks

try to see inside the capacitor js, maybe there’s a feature for it.

Look at this - Capacitor - build cross platform apps with the web

And also for cordova Android, there was a method - navigator.app.exitApp();