Skip to main content
Participant
July 5, 2011
Answered

How to close apps in ios.

  • July 5, 2011
  • 3 replies
  • 2294 views

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 has been closed for replies.
Correct answer relaxatraja
<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.

3 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

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.

Inspiring
July 5, 2011

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

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.

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.