Skip to main content
Inspiring
Jul 28, 2016 1:16 PM UTC
Question

Exit App in Air for IOS

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Colin Holgate
Inspiring
Jul 28, 2016 1:27 PM UTC

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?

Translate