How to close mobile app programmatically using IONIC 5?
**that’s work for me **
you also use
Force exit the app. This should only be used in conjunction with the backButton handler for Android to exit the app when navigation is complete.
Ionic handles this itself so you shouldn’t need to call this if using Ionic.
Answered By – 44_Chintan Vasoya