Skip to main content
Participant
Jul 5, 2011 2:55 AM UTC
Answered

How to close apps in ios.

Hi all.

I want to close my app in ipad.

So I use a function - NativeApplication.nativeApplication.exit()- but it doesn't working in ipad.

How can I do to this?

thanks.

This topic is closed to new replies. Start a new post to keep the conversation going.
relaxatraja
relaxatrajaCorrect answer
Inspiring
Jul 5, 2011 6:02 AM UTC
<iPhone>
        <InfoAdditions><![CDATA[
            <key>UIDeviceFamily</key>
            <array>
                <string>1</string>
                <string>2</string>
            </array>
            <key>UIApplicationExitsOnSuspend</key>
            <true/>
        ]]></InfoAdditions>
        <requestedDisplayResolution>high</requestedDisplayResolution>
</iPhone>

I hope you'r using the latest sdk AIR 2.7.

6 replies

Participating Frequently
Jul 5, 2011 10:30 AM UTC

Hi,

@ham jeonghoon

as stated: "exit" is not supported on iOS, see smilar:

http://forums.adobe.com/message/3770965

regards,

Peter

Translate
Colin Holgate
Inspiring
Jul 5, 2011 11:58 AM UTC

I suppose you could use deactivate to make a note when the user has left your app, and if they come right back let the app continue, but if it's another day, have it go back to its main menu. Probably not a good idea for a game, but might feel right for other kinds of applications.

Translate
Inspiring
Jul 5, 2011 1:56 PM UTC

is there any method to minimize back to the homescreen? Or is the apple hardware button the only way

Translate
Jul 5, 2011 7:16 AM UTC

This actually just means that your App will not go in standby-mode when switching out of it.

However you cannot (actively) close an App on iOS devices as Apple prohibit's that.

Translate
relaxatraja
relaxatrajaCorrect answer
Inspiring
Jul 5, 2011 6:02 AM UTC
<iPhone>
        <InfoAdditions><![CDATA[
            <key>UIDeviceFamily</key>
            <array>
                <string>1</string>
                <string>2</string>
            </array>
            <key>UIApplicationExitsOnSuspend</key>
            <true/>
        ]]></InfoAdditions>
        <requestedDisplayResolution>high</requestedDisplayResolution>
</iPhone>

I hope you'r using the latest sdk AIR 2.7.

Translate