I have a scenario that inside the screen in button onclick the action should perform force close of the app (i.e ) exit the app. I have used the snippet below in js.
document.addEventListener("Closetheapp", navigator.app.exitApp())
This snippet is working fine in Android but not in IOS.Is there anything for IOS?.
According to:
https://developer.apple.com/library/content/qa/qa1561/_index.html
There's no way to exit app programmatically in IOS.