Skip to main content
Participant
July 5, 2011
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
July 5, 2011
<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
July 5, 2011

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
July 5, 2011

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
July 5, 2011

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

Translate
July 5, 2011

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
July 5, 2011
<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