NativeApplication.nativeApplication.exit(); problem in iOS app

Have this function called to exit an iOS app:
function ExitApp(event:MouseEvent):void {
          listenIO(urAt,0);
          trace('NativeApplication Exit');
          NativeApplication.nativeApplication.exit();
The function is triggered as the listenIO() does its thing and the trace() triggers, but no exit(). Closing the iOS app by the hardware menu button exits but when re-entering the app, it is stll where it was left and I don't have a function to return to a preset state.
Help to exit the app appreciated, thank you.

One way to get around exit() not working on iOS might be to set the following property in your iPhone section of your app XML:
<iPhone>
          <key>UIApplicationExitsOnSuspend</key>
          <true/>
</iPhone>
That would force your application to exit on suspend (aka the user pressing the hardware button)

Similar Messages

  • Problem with ios app and Story plus

    i have just install story plus
    i wanted to try (luckily not on a real big project) the ios app so i've done some fake tv script on story.
    After that, i have start to add comment on the ios app.
    I see that i add comment on the projet page off my computer story plus interface
    but when i go on the authoring page, the comments are not here!!!!!!!!
    Then more problematic (definitively), when i go out and come back again to story i have a problem : it's now impossible to open these documents again!!!!!
    I really need to find a solution
    Thanks a lot

    Hi,
    We are aware of the issue with commenting in iOS app and are in process of fixing it.
    Can you please mail us your Story login email id and names of the documents that you are not able to open at "AdobeStory-Support<at>adobe<dot>com" so that we can fix this issue for you ?
    Thanks

  • IOS app crashes on return from cameraUI - a memory allocation problem?

    hey all
    trying to finish my first app
    when running on iOS, the app SOMETIMES crashes after returning from cameraUI (either "use"/MediaEvent.COMPLETE or "cancel"/Event.CANCEL).
    when i exit some other running apps on my iPhone 3Gs (and not that many are open), the problem goes away, which makes me think this is some memory allocation problem
    in that aspect, can i trust the iOS to exit inactive applications to allocate more memory for my, currently active, AIR app?
    (there is no memory leak)
    this is an iPhone 3Gs running os version 4.3.5
    the app was made with Flash Pro 5.5 overlayed with the AIR 3.1 sdk, and deployed using the "deploy for app store" type (which should be the most bug-free)
    (no crashes on Android or desktop versions)
    anyone had this cameraUI problem or a similar one where an app crashes if more then some numbers of apps are open?
    thanx
    Saar

    I don't get this. Its beyond frustrating:
    we are not talking about using an uncommon phone capability, access to a phones camera is about the most basic native level of access you would be looking for in a mobile framework
    we are not talking about an edge case in usage, just trying to take a simple picture consistently
    we are not talking about a feature issue where it doesn't quite work the way you want, it crashes the whole app hard! 
    we are not talking about a hard to recreate, only happening to a few people case - it seems from what I have read the Camera integration is fundamentally broken and I have spent days researching this and only found frustration from people out there
    we are not talking about an issue that does not have consequences - in several places on this forum and others people have emphasized how it is affecting their platform decisions, ability to submit apps. You even have people on this board recommending that not to use Flex Mobile and move to other platforms. Not what you want to be happening to when you are at the adoption phase of a new product.
    And that is the response - on this thread and here http://forums.adobe.com/message/4125590#4125590 - we know its an issue but we don't know when it will be fixed and no proactive communication on status - only a growing body of people like me getting increasingly frustrated. What does it take for an issue to be a show stopper? priority 1? affecting customer decisions priority?
    In my case I am in place where I am trying to make a platform decision and since this experience has happened I have subscribed to the live feed for this forum and as many relevant Adoble blogs, news feed etc. as I could find. I did this to get a feel for how well Adobe is supporting the mobile development on the AIR platform. Something increasingly important given recent decisions.
    My perception so far is quite poor especially for a recently released product, i.e. 4.6 release. In fact the release that finally addresses performance enough to make AIR mobile development a risk free decision. You would expect Adobe to be all over the boards like this - with core developers, platform experts contributing actively. My perception, rightly or wrongly, is of a community trying to support itself without much help, or clear communication from Adobe. In fact if you look at the the articles coming out of Adobe recently its all phonegap, html5 etc. It does not fill you with confidence for the future.
    To be clear - I have had a great experience with actionscript, flex etc and as a company we have developed the backend portion of our platform solely on Flex. I don't believe that we could have done it any other way and even now when I look at the alternatives for web development I feel vindicated in our decision.
    However, this rant is caused by a genuine frustration and fear. I don't expect this to get a meaningful response but maybe if there are enough voices it will create an overall improvement.
    Sean

  • Problems with Remote App on iOS 4?

    I have a new iPhone 4 and tried to use the Remote App in Connection with Apple TV. While I'am able to pair the remote app with Apple TV, I cannot use it properly. It works for a while, then it get's disconnected with a message that maybe a Firewall might be activated in the Router.
    I have no problems with Remote App connected to my iTunes Library. I also tried it with a iPod Touch which is still on iOS 3.1.3, no problems to connect to the Apple TV from there as well.
    Are there any known problems with iOS 4 and Apple TV?

    Chenks wrote:
    maybe for you, but isn't for me.
    i have the remote app on my iphone4 and it's connected to 2 appletv's.
    i don't experience any dropping of connection etc.
    May I ask what wifi hardware you use? It might be an wifi issue, but one which is only related with the "Bonjour" protocol which seems to be used for the Remote App. I found this thread which is older (iOS 3) but describing exactly the same problems:
    http://discussions.apple.com/thread.jspa?threadID=2048555&start=0&tstart=0
    bear in mind that the iphone4 is now "n" wifi compatible (2.4Ghz), so could it be that the "n" part of your network is poor and thus why you only see the problem on the iphone4 ?
    At least it is not poor when using it from other devices or moving a lot of data in other Apps. It is all Apple Hardware (nothing older than 2 years), and maybe that's the problem. I never had network hardware which made so much trouble, as Apples Airport series. I wouldn't wonder if it is an incompatibility between a new wifi chip in the iPhone 4 and a older Revision of an Airport device. But I don't know how to check - is there a system.log on the iPhone which I can access somehow?

  • I am using only one Apple ID. The problem, since iOS 6,  is the App Store purchased items screen just shows loading screen  it finally crashes or gives the error message 'can not connect to  Apple store'

    I am using only one Apple ID. The problem, since iOS 6,  is the App Store purchased items screen just shows loading screen  it finally crashes or gives the error message 'can not connect to  Apple store'

    I am using only one Apple ID. The problem, since iOS 6,  is the App Store purchased items screen just shows loading screen  it finally crashes or gives the error message 'can not connect to  Apple store'

  • Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • It's now over 6 weeks since I made the mistake of updating my iPad and I am furious and frustrated at the lack of a solution to the problem with ios 5 audio app missing lyrics

    It’s now over 6 weeks since I made the mistake of updating my iPad and I am furious and frustrated at the lack of a solution to the problem with ios 5.
    I recently updated to ios 5.1 but nothing has been done to rectify the audio app problems ie lyrics no longer shown,
    I am extremely disappointed and angrywith those responsible for the iOS 5 update, in regard to the way it hasaffected the music app in my iPad.
    I also own an iPhone 4, am an avid Apple fan, and up until now have beenextremely pleased with the devices, and have sung their praises to friends andassociates.
    I am a professional musician, and purchased an iPad primarily to use with theperformance of my music.
    The changes made to the music app affected my performances over the weekendextremely adversely – limiting my repertoire and causing confusion and delays.
    I have spent many hours talking withApple helpline assistants (who, incidentally have been very good and have triedto help), and I have also spent a lot of time on this letter.
    I greatly regret updating to iOS 5.
    There are two major problems with the music app.
    1. Lyrics no longer displayed
    2. Layout, and appearance and consequently performance have seriouslyregressed.
    I have a repertoire of around 500 song backing tracks, organised into about 20playlists, half of which featured lyrics / chords that I have spent monthsrecently entering into iTunes so that they could be used on my iPad.
    These were working fine up until the update - now they are gone.
    Previously, the app featured large icons for playlist, artists, songs etc. atbottom of page: Now there are small, grey, indistinct barely legible buttons.
    Previously, when playlist icon was selected - all the playlists were listedclearly in order on the left hand side in black on white (as in iTunes).
    Now they are scattered across the whole page in large squares (displayingnothing if there is no album art).
    The identifying wording below eachsquare is now small, grey, indistinct & barely legible.
    Previously, when a playlist was selected - the songs were displayed in adescending list in black & white: now they appear as small, grey indistinct & barely legible.
    Previously, when a song was selected - it appeared filling the page, and withaudio controls clearly positioned at top of screen. One tap would bring uplyrics.
    Now audio controls appear at top once again small, grey, indistinct &barely legible.
    A small square representsalbum art which if tapped fills page. A further tap fails to bring up lyrics.
    Don Wilson

    Lyrics aren't supported in the Music app on iOS 5 on the iPad. These are user-to-user forums, they are not monitored by Apple (there are too many forums/threads/messages for that to happen). If you want to leave feedback for Apple then you can do so here : http://www.apple.com/feedback/ipad.html

  • SKY go app but doens't work. There is a problem with iOs 6. What I can do

    I have an iPad I tried to use SKY go app but doens't work. There is a problem with iOs 6. What I can do

    The App says that there is not internet connection, even if I'm connected.

  • Having problem with buying apps....   Recently upgraded to iOS 6

    Having problem with buying apps.... Get a error msg stating that I am logged in Egyptian store, and need to log in Emirates(UAE) store!!! But I am currently in UAE... This started after I upgraded to iOS 6

    Found a solution from one of the community posts
    One needs to go to the apps store --> select featured apps --> go to bottom of the screen and select your apple id tab --> on the pop up screen select 'view apple id' --> go to region and change to appropriate region.... Cheers

  • Exiting an iOS App

    What's the proper way to do that? NativeApplication.nativeApplication.exit() doesn't seem to work on the iPad (works for Android, and Desktop AIR)

    Duplicate of: http://forums.adobe.com/message/3779052#3779052

  • During today (Nov-16) I'm experiencing problems to update apps from appstore in my Ipad2 IOS 6.01. Some problems?

    during today (Nov-16) I'm experiencing problems to update apps from appstore in my Ipad2 IOS 6.01. Some problems?
    I don't know what happen, but this is not nice....
    Please, let me know what is the problem. I know that similar things are happening outside my enterprise
    Regards

    What is the exact problem or error message?
    If you're having issues connecting to the app store, is this the only connection issue? Can you connect to itunes store?
    Cannot connect to iTunes Store
    http://support.apple.com/kb/TS1368
    Try rebooting your ipad by pressing and holding both the home and sleep/wake buttons at the same time until the apple logo appears on the screen, then let go.
    Go to settings/itunes and app stores, tap on apple id and sign out. Reboot the ipad and the sign back in the same way.

  • I updated my iPhone to iOS 7.0.5 and I lost my messages and camera app and other apps i downloaded from app store. I was having the problem of losing apps since before I updated to the latest IOS. What should i do?

    I updated my iPhone to iOS 7.0.5 and I lost my messages and camera app and other apps i downloaded from app store. I was having the problem of losing apps since before I updated to the latest IOS. I have tried enable and disable restriction, connecting my phone to my laptop and sync from my computer and none of them is working. What should i do?

    Often when this type of thing occurs with missing default apps it is due to a situation where you are unable to 'see' the apps. If you will go to your front display of your device go to settings>General>Reset>Reset Home Screen layout.
    This reset allows for your apps that have for whatever reason been hidden in such an area as you arn't able to find them now to be returned to the area as which they were when you first had the device.
    As far as the missing Apps that were purchased through the Apps Store if you will go to settings>itunes and Apps store and click where it reads about automatcally downloading apps clicking on the toggle switch AND clicking on the toggle switch which allows for cellular data to be enabled this then will effectively automatically download all apps to your device that was purchased from the App Store.
    Good luck friend.

  • I have a problem with IOS 7 when I am installing app on App Store. I must read and accept new terms and condition. However, I read all new terms that I don't see Agree button to accept. Can you check help me this problem?

    I have a problem with IOS 7 when I am installing app on App Store. I must read and accept new terms and condition. However, I read all new terms but I still don't see "Agree" button to accept. Can you check help me this problem?

    If it says 'Open' in the App Store, then it's on your device.  What happens when you press the 'Open' button in the App Store?
    The App is on your phone, somewhere.  Use Spotlight to find it, or you can reset your Home Screen layout, and then you'll definitely find it.

  • Has anyone out there experienced problems with launching apps after downloading the iOS 5.1?

    Has anyone out there experienced problems with launching apps after downloading the iOS 5.1?

    I tried calling support and they want to sell me $79 worth of support in order to get it straightened out!

  • Guys, good evenning! What is the most recently (or the best) iOS for the iphone 3G? Nowadays, i am using the 4.2.1 but i am having some problems to install apps from Apple Store because this iOS is not compatible with the apps. Thank You...

    Guys, good evening!
    What is the most recently (or the best) iOS for the iphone 3G?
    Nowadays, I'm using the 4.2.1, but I'm having some problems to install apps from Apple Store because this iOS is not compatible with the apps.
    Thank you very much...

    Thank You Niel!
    And if I install another version (eg 4.3), can I damage my iphone?
    This is the version required by the Apple Store when I try to install apps.
    For you understand better my problem, I'm not able to install simple apps like facebook and skype
    What do you advise me to do?
    Best regards,
    Jocemar

Maybe you are looking for