Skip to main content
Inspiring
July 28, 2016
Question

Exit App in Air for IOS

  • July 28, 2016
  • 1 reply
  • 380 views

Dear Friends,

iam creating a IOS app. in that I wan to add close button. when user click on the close button, app should close and end. I used the following code.

function close_clicked(event: MouseEvent) {

NativeApplication.nativeApplication.exit();

txt.text = "quiting";

}

It is working in my desktop. when I install in to my Ipad its not exiting the app. Pls help me.

even I added that " <key>UIApplicationExitsOnSuspend</key>" in xml file also.

Thanks and Regards,

Syed Abdul Rahim

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
July 28, 2016

You don't say what you have the key set to. It needs to be YES, and not TRUE.

Do you realize that once you have that working, someone who doesn't want to quit your app, but does want to go to another app for a moment, will find that your app was quit on them without touching your close button?