Air 3.0 multitask features for ios

Hi,
My app needs to update it's status to my server, when it goes to background.
Currently I'm using Air 2.7, and do a curl by listenning deactivate.
It works fine on Android, but can not finish the curl on ios after home button is pushed(the event is fired, but the curl seems never be executed).
Is there any way can do this job on ios? How about air 3.0 multitask features for ios?

I can confirm that defining the UIBackgroundMode for 'audio' allows you to run code while the app is in the background.  I have a similar issue I am trying to solve, but with regards to location.  I need to be able to receive geolocation updates when the app is active, at the home screen, while in another app and when the screen is turned off. I have gotten it to work with all of the cases except for while the screen is off by defining the UIBackgroundmodes for both 'audio' and 'location'.
To test if code can be run, I have an event listener that gets triggered when the app is deactivated and activated.  I am setting a timer the moment the app gets deactivated and incrementing a varaible every 100 milliseconds while the app is inactive.  When the app becomes active again I report the number back in a debug textfield.  If I press the home button or open another app, the number is accurate to how long the app was inactive for... but as soon as I press the power button to shut the screen off, the number stops incrementing shortly after.
I have seen plenty of native iOS geolocation-based apps get updates while the screen is off, why is this not the case for an AIR iOS app? Is there a workaround for this? Does someone at Adobe need to fix this issue?  At this point, I'm not even sure Native Extensions would do the trick...
ANY help would be greatly appreciated.

Similar Messages

  • Cannot find my air play on ipad 2 for ios 7.0.2, please help?

    Cannot find my air play on ipad 2 for ios 7.0.2, please help?

    Hello Rico4444
    Swipe up to bring up Control Center and then it will be towards the bottom next to the brightness controls on your iPad.
    iOS: Using AirPlay
    http://support.apple.com/kb/HT4437
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Can apple improve the features for IOS 7 for iPhone 4 ?

    Can apple improve the features for IOS 7 for iPhone 4 ?

    You can try suggesting it to them here feedback
    Pete

  • Please please make the Multitasks feature in ios 5 optional , like the bluetooth or siri which can turn it on or off

    hi everyone
    please please make the Multitasks feature in ios 5 optional , like the bluetooth or siri which can turn it on or off
    thank you very much to all of you
    please do not ignore this request and think about it please

    This is a user-to-user forum. You're not addressing Apple here. If you want to make a suggestion to Apple, use the appropriate link on the Feedback page:
    http://www.apple.com/feedback
    I think it's also possible you don't quite understand how multitasking works on the iPhone. Most of the apps you see when you double tap the Home button are not running. They are recently used. Very, very few apps actually run in the background. Apps that do continue to work in the background are apps that play music or use GPS.

  • HT4559 How do I get a list of the 200 new features for iOS 5

    How do I get lists of the apparent 200 new features of iOS 5 for some reason I cannot find any in support on this website or anywhere!
    Also I want a description of what each feature does. Mainly in safari but I'm getting a bit suspicious if any of the features exist. We pay our money there needs to be a list of what we get.

    You mean for iOS 6 that was recently announced and won't be released until this fall?
    If so, iOS updates are free - you won't be paying anything for it, and the same for iOS 5.
    Apple has provided some of the new features included with iOS 6, but not list of all since iOS 6 has not been released yet. Some of the features included with the current iOS 6 BETA version may be removed or changed.

  • Drummer feature for IOS 7.

    Is the new feature "drummer" available on the IOS 7 GarageBand. If so where?
    I have IOS 7 on my iPod touch 5. I did pay for GarageBand.

    A good place for suggestions to Apple is: http://www.apple.com/feedback/

  • Adobe AIR 14.0.0.110 for iOS on iOS 8 beta 2 - Game Center not authenticating in the Game Center ANE of the Gaming SDK?

    I included the iOS 8 beta sdk and I have an app that is using the adobe gaming sdk's Game Center ANE, but Game Center isn't authenticating when I test the app. Is this a bug? Will it be fixed? I don't have two iOS 7 devices and I can't downgrade to iOS 7 so I'm stuck not testing my new app. My IDE is flash professional CS6.

    This may be related to this bug https://bugbase.adobe.com/index.cfm?event=selectBug&CFGRIDKEY=3694360

  • SWFs not loading in Air 4.0... for iOS

    Hi,
    I've read some of the posts about the problem of SWFs not loading in iOS.  This seemed to have to do with the SWFs having code.  We removed code from the SWFs and In previous releases, using previous SDKs (I don't remember the last one that worked) we had everything working.  But in the latest version compiled with the latest SDK (4.0...) none of the SWFs load.
    of course I'm learning about this late in the game.
    One more piece of information.  I did a test with an application that just loads one codeless SWF and have exactly the same result. 
    If anyone has any ideas, I would be very grateful.
    Best regards,
    Chris McLaughlin

    Hi,
    So code or no code external SWFs require a loader context.
    I borrowed this directly from a kglad response:
         var lc:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain,null);
    When I add the LoaderContext to the loader (at least with my experimental app) the SWF loads.
    Also from kglad's example: yourloader.load(yourexternalswf.swf,lc);
    Thanks kglad.

  • Uploading AIR for IOS thru Application Loader I get the following error - The package does not contain an Info.plist.

    I'm publishing an .fla in AIR for IOS.
    I'm in CC 2014 so first I need to know which AIR should I publish in?
    newest is AIR 14.0.0.178 for IOS
    IOS deployment type is App Store
    publishes with no error.
    I see the following files included .swf and app.xml
    I convert the .ipa to a zip file
    Upload that thru the Application Loader I get the following error
    The package does not contain an Info.plist.
    Where is the infoplist for this and do I convert the .ipa and the info to a zip file?
    I converted the .ipa to a .zip and the intoplist file is NOT THERE  how do I generate this?
    Any help here?

    Ok this is becoming very very frustrating as I have been at this for hours now. So the only way to explain this is to write what I did step by step as I have to be doing something wrong, just to recap:
    I was publishing from Flash CC 2014 using AIR 14.0 and getting Digital Certificate is not valid message.
    Was instructed to download new AIR 17 , I did this installed into Flash and used to publish.
    I used my previous p12, app ID and distribution certificates all generated properly.
    The file worked ONCE but I got an app ID error ( I understood I used the wrong app ID)
    I changed it to the right app ID and the very next time and after 10 attempts I got the same error  Digital Certificate is not valid
    SO I then downloaded AIR 16.0
    RE DID ALL MY CERTIFICATES AND P12'S
    went to publish and I STILL GET THE SAME MESSAGE   Digital Certificate is not valid

  • Air for iOS 7 App  - Listen for wireless Keyboard events

    Greetings i've been reviewing this older posting relating to the same problem that I have, but cannot surmise the solution from the thread. Could someone help point me in the right direction?
    https://forums.adobe.com/message/5618417
    I've built a flash ios app that relies on the input from 5 keys to function. I'm using Flash CS6 and AIR 13.0.0.111 for iOS. The app wont recognize the input from my bluetooth keyboard though.
    This code works until loaded onto the iPhone:
    stage.addEventListener(KeyboardEvent.KEY_DOWN, ScrollDown);
    function ScrollDown(e:KeyboardEvent):void{
    if (e.keyCode == 83){
    I guess in need to use a event.CHANGE listener but I can't find any similar tutorials to follow.
    Any help would be greatly appreciated.

    I don't know how wireless keyboard work for iDevices...
    Try to add StageText, tap on it and try to edit text using your keyboard. Could StageText hook keyboard input?

  • AIR for iOS, Library Project

    Is there (or will there be) any way to compile an actionscript mobile project, using AIR for iOS, as a library project so that other objective c applications could integrate the AIR library project within them ?

    http://custardbelly.com/blog/2011/09/21/air-native-extension-example-ibattery-for-ios/
    This is a very good example you can look, there are many others. try to google something like:"native extension for air on IOS" or if you know which component you want then go with "native extension air ios ComponentX", etc.

  • Background Behavior for iOS - the Suspend event and executeInBackground

    It looks like suspend is not being defined in airglobal.swc. It just says (line 836 of flash.events.Event.as):
    public static const SUSPEND : String;
    Also, when attempting to compile in, ah, Flash CS<NDA> with "AIR 3.3.0.3230 for iOS" as the target, adding <executeInBackground>true</executeInBackground> to the app xml's <iPhone> node results in an alert:
    Unexpected or unknown element or attribute in the application descriptor file.
      application.iPhone.executeInBackground is an unexpected element/attribute
    Is there any way to test these things with this beta?

    It happens to me as well. I did try to put this variable in flash coding, but I need try {} catch to be able to test in flash builder otherwise it crash with no error appear.
    try {
        NativeApplication.nativeApplication.executeInBackground = true;
    } catch (e:Error) {
    } //Without try catch.. Flash builder crash at this line with no error notification. But in iPhone4 without try catch it runs fine
    However, when I test my application in iPhone4 iOS 5.01, I got nothing when the app is in background (I tested by firing post variable via url loader to server with enterframe event 40-50 frame once, and  by add location update event listener to Geo object also).
    I think the problem is <executeInBackground>true</executeInBackground> which is added to <iPhone> tag in app.xml can't be compile by flash builder.
    note: I've also changed application description to air 3.3
    <application xmlns="http://ns.adobe.com/air/application/3.3">
    and added location service in
    <InfoAdditions><![CDATA[
                                  <key>UIDeviceFamily</key>
                                  <array>
                                            <string>1</string>
                                            <string>2</string>
                                  </array>
                                  <key>UIBackgroundModes</key>
                                  <array>
                                            <string>location</string>
                                  </array>
      ]]></InfoAdditions>

  • AIR for iOS, are all features working? Need to quote a complex project and want to make sure...

    Hi,
    I am quoting for a large RIA to be exported as an iOS app, using features such as consuming webservices in https, etc.
    My question is:
    - Do all standard AIR features work when packaging for iOS? Can I consume data on the internet? store local data? save photos? access the camera? etc.
    - What is notoriously not working?
    Thank you very much
    namaste
    Filippo

    Those things you mentioned should work. The main thing that does not work is you can't load an external swf that has code in it, that's not allowed.

  • AIR for iOS app works perfectly in emulator, not at all on an actual iPad

    I'm new to mobile development, so I'm hoping I am doing some simple wrong, like a wrong checked box or something.
    I have an app that I have written for iPad. It's fully functioning when I run it through the emulator (I have to change it to Flash 10.1 and use Device Emulator because nothing else will accept touch events) but doesn't really work on the iPad. Some of the features work, and some don't. It's like it's just not quite compiling all the code, and I'm very confused.
    My publish settings:
    Player: AIR for iOS
    Script: Actionscript 3.0
    Included .swf, .xml, and all relevant .as class files
    Published using quick publish for device testing
    Are there some AS 3.0 features that won't work in iOS? If so it would be really great to have a list of those somewhere.
    What am I doing wrong? Why won't my app work on an actual device if it tests perfectly in the emulator?

    My original question has not been answered, but I am running across the same problem in a different way.
    I have added to my code, continuing to build the app, (hoping the problem can be solved eventually), and once again, the app works perfectly in Device Central but not on the iPad.
    I have buttons to select different levels of the puzzle. Each time you press a button, the level automatically updates itself on the board. So if you are playing the shape level, the shape of the puzzle piece is on the board. If you are playing the name level, the name of the puzzle piece is on the board. Etc.
    This works perfectly on my computer. However - again - when I transfer it to an iPad, choosing the "shape" level will cause the names to pop up.
    I have double and triple checked the variable names to make sure they match up and are correctly spelled and capitalized. It just doesn't function in iOS.
    Here is the code to switch levels and automatically generate a new random puzzle piece:
    function changeLevel (e:TouchEvent): void {
        trackUSAPiece = ["pieceAL", "pieceAK", "pieceAZ", "pieceAR", "pieceCA", "pieceCO", "pieceCT", "pieceDE", "pieceFL", "pieceGA", "pieceHI", "pieceID", "pieceIL", "pieceIN", "pieceIA", "pieceKS", "pieceKY", "pieceLA", "pieceME", "pieceMD", "pieceMA", "pieceMI", "pieceMN", "pieceMS", "pieceMO", "pieceMT", "pieceNE", "pieceNV", "pieceNH", "pieceNJ", "pieceNM", "pieceNY", "pieceNC", "pieceND", "pieceOH", "pieceOK", "pieceOR", "piecePA", "pieceRI", "pieceSC", "pieceSD", "pieceTN", "pieceTX", "pieceUT", "pieceVT", "pieceVA", "pieceWA", "pieceWV", "pieceWI", "pieceWY"]
        if (e.target == nameLevel) {
            PuzzleGlobals.currentLevel = "Name";
            nameLevel.gotoAndStop("Active");
            abbrevLevel.gotoAndStop("Inactive");
            shapeLevel.gotoAndStop("Inactive");
            for (var j=0; j<(PuzzleGlobals.TOTAL_NUMBER_USA); j++) {
                this[trackUSAPiece[j]].gotoAndStop("wholeName");
        else if (e.target == abbrevLevel) {
            PuzzleGlobals.currentLevel = "Abbrev";
            abbrevLevel.gotoAndStop("Active");
            nameLevel.gotoAndStop("Inactive");
            shapeLevel.gotoAndStop("Inactive");
            for (var k=0; k<(PuzzleGlobals.TOTAL_NUMBER_USA); k++) {
                this[trackUSAPiece[k]].gotoAndStop("abbrev");
        else if (e.target == shapeLevel) {
            PuzzleGlobals.currentLevel = "Shape";
            shapeLevel.gotoAndStop("Active");
            nameLevel.gotoAndStop("Inactive");
            abbrevLevel.gotoAndStop("Inactive");
            for (var l=0; l<(PuzzleGlobals.TOTAL_NUMBER_USA); l++) {
                this[trackUSAPiece[l]].gotoAndStop("shape");
    function addNewPiece (e:TouchEvent): void {
        ri = Math.floor(Math.random()*(1+PuzzleGlobals.TOTAL_NUMBER_USA));
        if (PuzzleGlobals.statesOnBoardUSA == PuzzleGlobals.TOTAL_NUMBER_USA) {
            //play BOOP sound indicating no new pieces left
        else {
            if (usaPiece[ri] != null) {
                bmc.addChild(this[usaPiece[ri]]);
                if (PuzzleGlobals.currentLevel == "Shape") {
                    this[usaPiece[ri]].height = this[usaPuzzle[ri]].height;
                    this[usaPiece[ri]].width = this[usaPuzzle[ri]].width;
                this[usaPiece[ri]].x = e.stageX;
                this[usaPiece[ri]].y = e.stageY;
                usaPiece[ri] = null;
                PuzzleGlobals.statesOnBoardUSA++;
            else {
                addNewPiece(e);
    Here is the code that creates the piece:
            public function GeoPiece(): void {
                if (PuzzleGlobals.currentLevel == "Name") {
                    this.gotoAndStop("wholeName");
                else if (PuzzleGlobals.currentLevel == "Abbrev") {
                    this.gotoAndStop("abbrev");
                else if (PuzzleGlobals.currentLevel == "Shape") {
                    this.gotoAndStop("shape");
                this.addEventListener(TouchEvent.TOUCH_BEGIN, geoPieceBegin);
    Is it possible I have a bad compiler or something? Do I need to reinstall the entire program? I just can't figure out why it would work in one operating system and not in another.
    Thanks
    Amber

  • Is System.gc() recognized in AIR 3 for iOS ?

    is System.gc() recognized in AIR 3 for iOS ?
    Or am I putting on a line a code that's just for pasterity ?
    I have made every effort to dispose(),null and removeEventListener any unused Object, hence to be able to tell the Garbbage Collector to "go ahead" is a really awesome feature.
    Can I confirm that this line of code work in iOS ?
    Thanks

    It's not useful if you are disposing of your objects properly.
    Cache will still ensue. Running a gc at that point can slow you down. iOS knows when it needs more memory and your dereferenced objects will be removed for you.
    Again, as long as you're cleaning up your objects properly, there is no need to manually call garbage collection. You may do 'the same thing again' and what otherwise would have already been in memory as cache would have to be reallocated, slowing you down.
    Flash Builder memory profiler will show you how it will act and if you're disposing your objects correctly. As long as you don't notice instances being generated and not removed when you thought they should have, you're fine.

Maybe you are looking for

  • How to delete large data using XML batch in chunk

    public void DeleteListItems(SPWeb web, SPList list) RMPExceptionManager.LogErrorInFile("--------Delete List Items from : " + list + " starts--------", true); try web.AllowUnsafeUpdates = true; StringBuilder builder = new StringBuilder(); builder.Appe

  • Printed Documentation

    Hi everyone, I have yet another issue with Printed Documentation. After I generate the Word document (which is working okay now), I am having trouble with the "Comments" function in Word. When I generate my Word document, there is a gray background b

  • Line have no end  with MathFP

    Hi every body, I am developing a software to draw a circle and according to an angle it draws a line from the centre of the circle to a point(the point indicates the angle). Anyhow i have used MathFP to calculate the sin&cos but i got an endless line

  • Upgrading and moving a catalog

    I have Photoshop Elements 11 on my old computer with a catalog with many tags. I bought a new machine and loaded Photoshop Elements 12. I then backed up my Elements 11 catalog using Full backup. Then went to new machine and restored. All my pictures

  • I am unable to insert the sql data into sharepoint column(with type "Person or Group") through SSIS package.

     can anyone suggest me how to insert values to sharepoint list column of datatype (person/group datatype).  Also, Does sharepoint list allows nulls as a value? please help. Thanks Raghavendra