How to exit my app with a button? Instead of explaining to my users how to exit from the app, I want to add an button that will terminate my app so they won't call for help.
Yes there are still people don't know how to "Launch the recent applications menu"
You could do this,
import * as application from "@nativescript/core/application";
...
if (application.android) {
application.android.foregroundActivity.finish();
} else {
exit(0);
}