50
Views
1
Comments
Solved
How to force exit the application in IOS while on button click inside the screen?
Application Type
Mobile
Service Studio Version
11.53.15 (Build 61227)

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?.

2019-03-18 10-26-38
Jeroen Vormer
Solution

According to:

https://developer.apple.com/library/content/qa/qa1561/_index.html

There's no way to exit app programmatically in IOS.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.