11 Vote

Cordova: Close App

Question by Guest | 2021-01-11 at 13:36

I would like to close my Cordova App via code (for example when a user clicks a button or the like).

Is there a command for this that I can use?

ReplyPositiveNegative
Avatar
1Best Answer1 Vote

You can simply end your app with the following line of code:

navigator.app.exitApp();
2021-01-11 at 22:35

ReplyPositive Negative
Reply

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.