Air 3.3 and background ios apps

Hi All
I cannot find some coherent information on this so I am asking here.
I need to write an iOS app that needs to perform a webservice call every x minutes to update the slqite db on the device, even if the application is not running in the foreground.
From google what I could find out was that iOS will only allow your app to run a small time after closing(to finish an upload etc).
e.g. "AIR does not provide support for this iOS background processing model":  http://www.adobe.com/devnet/air/articles/considerations-air-apps-mobile.html#articleconten tAdobe_numberedheader_5
but then later " applications may now support location updates and networking in the background": http://forums.adobe.com/message/4380335http://forums.adobe.com/message/4380335
Can I do what I need in Air 3.3+ an iOS 5.1+ ?
Thank You

Some of the statements in this thread are no longer true, or need to be updated.
Here is a recap:
As of AIR 3.9, background execution will work on iOS+Android with render mode set to 'direct' ( which implies that you are using Stage3D ).
For background execution to work in iOS, you need:
to set NativeApplication.nativeApplication.executeInBackground = true, in your as3 code somewhere ( note: strangely, background exec on iOS has worked for me in the past even by not doing that ).
to add in the iPhone section of your app manifest ( *-app.xml ):
UIApplicationExitsOnSuspend = false
UIBackgroundModes = audio ( and/or location, or some other background mode ).
a good excuse / reason :  since battery-gate on the iPhone4, Apple has  tightened its policies regarding background execution.  For example:  last time I tried, setting UIBackgroundModes=audio was only allowed if the app was intended to play a sound persistently in the background ( not occasionally, such as an alarm clock sound ).
For local notifications, I recommend Distriqt's local notification ANE ( Android+iOS), since it's the ony one I know which uses the AlarmManager api on Android ( Koesler's Android Local notif doesn't last time I checked ).  This means that on Android, the local notification can be scheduled for a later time ( same as iOS ), and will fire EVEN if the app is either minimized or has been closed properly ( meaning closed by the OS, or by the user via NativeApplication.nativeApplication.exit() -- note: force-stopping is the exception and cancels scheduled notifications on Android ).  You can also have the local notification play a custom sound which is up to 30 secs long ( mp3s on Android / cafs on iOS).  Sound will be audible on both platforms, even if the device is suspended.  This is ideal for an alarm-clock, for example.  The downside of local notifs is that they don't execute code, per se, however they can pass a data payload ( text ) back to the app, if it is running ( even if minimized ), which a handler can receive to do stuff.

Similar Messages

  • HT4528 I have an IPHONE 4 and the IOS app was downloaded on my phone. I Hate it...I do group texting for my church and I am unable to do it now, it says please wait and then I can never get it to let me type the message..Is there anyway to take this off m

    I have an Iphone 4 and the IOS app was downloaded. I HATE it it will not allow me to group text. i do a prayer chain for my church and it will not let me type any messages...is there anyway to delete this app or upgrade

    As major software releases go iOS 7 is amazing?  Many requests for support found on these boards are solved via advice related to How To Do Something.  Many times the advice is right out of the User Documentation provided by Apple.  If someone were to compare the number of critical issues reflected across these posts vs. most other major releases from any major vendor ...iOS 7 is excellent.

  • Why deadlines in Reminders appear differently in iCloud web and in iOs app?

    In the iCloud web app, when I set a new reminder, a "deadline" can be added. In the iOs app, this deadline is visible, but if I create a new reminder in the iOS app I can only set an alarm date but no deadline, which appear in a different line. In other words, reminders created in the web app have "deadlines", reminders created in the iOS app have "alarm date". In the iOS app, the list is sorted by deadline, not alarm date, I can't find anything. How can Reminders be useful if I can't work in the web app and the iOS app at the same time?

    Comment your css body, td, th out /* */ as shown below:
    /* body,td,th {
    color: #FFFFFF;
    font-family: "Comic Sans MS", cursive;
    font-size: 36px;
    Add the font family and font size to your 'a' css selector as below:
    a:link {
      text-decoration: none;
      color: #7030a0;
    font-family: "Comic Sans MS", cursive;
      font-size: 36px;
    Add the font size to you ii css selector as shown below:
    .ii {
    color: #7030A0;
    font-size: 36px;

  • Free Apple Developper account and ß testing iOS app?

    Hi,
    I have a free Apple Developper account for now and I plan to develop a draft app for iOS. So not for iTunes distribution (yet).
    I have 2 questions:

    Do I’ll need to have a payed account (= join the iOS Developer Program and pay the $99) to develop beta apps that would only be installed for test on the 3 iPhones from my family?

    It seems that I would need that account to do iOS Push (as I should need upload APNS certificate and password)...
    I’m not a developper but I’d need to develop a draft app, a mock-up.
    Will it be possible to do it with my free developper account?
    Thanks for your answers
    Eric

    Too bad…
    Apple shouldn't charge for beta testing on draft apps.
    For distribution, yes. But for development, it's not fair…

  • Emoji in Adobe Air iOS app?

    Hello,
    We are using Adobe Flex 4.6 and Air 3.3 to develop iOS app. Does anyone know if it is possible to enable emoji in our app? Currently the emojis show up as squares.
    Thank you very much.

    omgallnamestaken,
    did you ever get anywhere on this?  Im trying to do the same thing on ios with air app running in the background.  thanks.

  • Can you build an iOS app on windows with dreamweaver and submit it to the apple store?

    Hi
    I am interested in starting to develop my own apps for the App Store,
    I own a windows computer and I am wondering if its possible to build an app
    In dreamweaver and then submit it through phonegap build to the apple store.
    Can't seem to find the answer anywhere =(
    Thanks,
    Nic

    I am interested in starting to develop my own apps for the App Store,
    I own a windows computer and I am wondering if its possible to build an app
    In dreamweaver and then submit it through phonegap build to the apple store.
    I have an app in the App Store that I designed in Photoshop, developed in Dreamweaver CS6, and packaged with Adobe PhoneGap Build. The first three steps - design, development, and packaging I did on a Windows computer. But I used a Mac for my developer certificate and provisioning profile, as well as the finall step of preparing and submitting it to the App Store through Application Loader.
    Here is some info: Building for iOS
    You'll also need an Apple Developer account, and an Intel-based Mac running Mac OS X Snow Leopard or later to develop and distribute iOS  apps. If you're building an app for a client, you'll use their developer account for the submission process.
    Here is a little more info: iOS Developer Program

  • Is it possible to Manage iOS apps with Lion Server

    I was wondering if anyone knows whether or not it's possible to manage (add and remove) iOS apps using Lion Server, specifically apps available via the app store rather than apps built for internal use? I can't seem to see a way of doing it using profile manager but was wondering if I was maybe missing something?
    Thanks

    The answer to this would appear to be no.

  • SUP 2.1.1 - Online operation (IOS app)

    Hi,
    I'm creating an IOS app where everything works offline (it's a sales app for SAP R3).
    Every day the MBO data is refreshed (Materials, customers, etc) and the IOS app loads what it needs to work offline.
    But there is a stock check operation that must be done online, calling the R3 RFC, to now the actual value. I added this operation to the materials MBO but it's behaviour is like an offline operation. How can I force this to do the operation online, I just want an error if the RFC cannot be called or the IOS device hasn't got connection.

    You can try creating a separate Synchronization group for this specific service. On the synchronization group properties, you can change the synch behaviour.

  • Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode.

    Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode. What changes I have to made to work great in iOS 7 also.

    I rewrote code for debugging purpose and tried to catch error using GetLastError();  method,
    but it only printed 0. Below is code snippet; I think Create() throw an exception
    and code goes to catch block. 
    LONG ConnectTS(CString strIP, UINT n_Port)
    try{
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
    // Exception Line
    n_Err = GetLastError();
    return NET_INIT;
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image
    System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Output: -
    ConnectTS is calling Create [is going to call]
    Image System
    0

  • Error creating files. Compilation failed... when publishing iOS app with AIR 3.1 and Flash 11.5.1

    Hello, I'm running Windows 7. I'm using Flash 11.5.1 (that's CS5.5 updated once) and AIR 3.1 to make an iPhone app.
    I can export the app perfectly fine with either Ctrl+Enter or F12.
    I added all the required things with AIR for iOS settings, such as a p12 certificate and icon files.
    I then hit publish. After I hit publish, I got this error:
    Error creating files.
    Compilation failed...
    I tried dragging the window to see if there was anything hidden behind the elipses. What can I do to fix this problem?

    note sure if I'm much help other than to CONFIRM it is working for me by using the sdk WITHOUT the compiler. Check out adobe's little note: "Note : Flex users will need to download the original AIR SDK without the new compiler."
    I am using FB 4.7 with AIR 3.6 and seems to compile correctly for iOS.
    Maybe try reinstalling flash builder?
    I honestly don't know if the JRE has anything to do with it... I'm using 1.7 ....to see what JRE you're using, open the Java Control Panel (I right click my java orange icon and hit properties), select the Java tab, then hit "View..."

  • Flash-Air-App for iOS and Apples new App Store guideline (XCode 5)

    Hi Forum,
    i'm using Flash CC for the development of an iOS App (AIR).
    Now Apple will soon update the iOS to 7.1 and Apple says, that from 1st of Feb. 2014 you can only publish iOS-Apps created in XCode 5 in App Store.
    Or how do I have to read this statment from Apple: "Starting February 1, new apps and app updates submitted to the App Store must be built with Xcode 5 and iOS 7 SDK."
    How does this fact affect my Project?
    Will it still be possible to publish an FLash-Air-iOS-App through App Store?
    Thank you in advance
    Ralf Kopp

    Adobe fixed this internally. Just update your adobe air sdk to latest from labs.adobe.com

  • Is new mac book air with 1.3 ghz and 4gb ram good enough for ios app development

    Hello all,
    I am  thinking of purchsaing mac book air 13" with 1.3 ghz and 4gb ram.
    currenlty i am using mac mini.Can any one help me if  new mac book air with 1.3 ghz and 4gb ram good enough for ios app development to make it as my prmary machine for development.
    Ragards.

    A Macbook Pro 13-inch may be a better choice.
    Best.

  • AIR 3.9 as3 IOS app stuck on launch / loading / splash screen

    When deploying an app to ipad2 ios7/iphone4 ios6/iphone5 ios7 the app doesnt get past the loading/splash screen.
    Ive tried debugging on the device via usb but doesnt even hit the first breakpoint on the firtst line of code. Also deployed via testflight with the same result ie stuck on the loading screen.
    I released the app in December but the app freezes on the loading screen from the app store!!?? Ive no idea how this passed apple testing etc and it previosly worked. ..Has anyone got any advice on how to debug this or does anyone know what could be the problem?
    Ive now created a VERY simple app for testing, this includes all icons etc and just displays some text in a text box. This also freezes on the loading screen.
    Im using Flashbuilder 4.7 with air 3.9
    Ive updated compiler arg with -swf-version=22
    application descriptor updated with - <application xmlns="http://ns.adobe.com/air/application/3.9">
    included icons are -
    <icon>
    <image16x16>16x16.png</image16x16>
    <image29x29>29x29.png</image29x29>
    <image32x32>32x32.png</image32x32>
    <image36x36>36x36.png</image36x36>
    <image40x40>40x40.png</image40x40>
    <image48x48>48x48.png</image48x48>
    <image50x50>50x50.png</image50x50>
    <image57x57>57x57.png</image57x57>
    <image58x58>58x58.png</image58x58>
    <image72x72>72x72.png</image72x72>
    <image76x76>76x76.png</image76x76>
    <image80x80>80x80.png</image80x80>
    <image96x96>96x96.png</image96x96>
    <image100x100>100x100.png</image100x100>
    <image114x114>114x114.png</image114x114>
    <image120x120>120x120.png</image120x120>
    <image128x128>128x128.png</image128x128>
    <image144x144>144x144.png</image144x144>
    <image152x152>152x152.png</image152x152>
    <image512x512>512x512.png</image512x512>
    <image732x412>732x412.png</image732x412>
    <image1024x1024>1024x1024.png</image1024x1024>
    </icon>
    included launch images are -
    Default.png
    320 x 480
    iPhone, standard resolution
    [email protected]
    640 x 960
    iPhone, high resolution
    [email protected]
    640 x 1136
    iPhone, high resolution, 16:9 aspect ratio
    Default-Portrait.png
    768 x 1004 (AIR 3.3 and earlier)
    768 x 1024 (AIR 3.4 and higher)
    iPad, portrait orientation
    [email protected]
    1536 x 2008 (AIR 3.3 and earlier)
    1536 x 2048 (AIR 3.4 and higher)
    iPad, high resolution, portrait orientation
    Default-PortraitUpsideDown.png
    768 x 1004 (AIR 3.3 and earlier)768 x 1024 (AIR 3.4 and higher)
    iPad, upside down portrait orientation
    [email protected]
    1536 x 2008 (AIR 3.3 and earlier)1536 x 2048 (AIR 3.4 and higher)
    iPad, high resolution, upside down portrait orientation
    Default-Landscape.png
    1024 x 768
    iPad, left landscape orientation
    [email protected]
    2048 x 1536
    iPad, high resolution, left landscape orientation

    I have the same problem, AIR 4 (1628) and compiler -swf-version=23; testing on iPad3, iOS 7.0.6
    The app launches less than half of the time successfully.
    Mar  5 11:46:09  backboardd[29] <Warning>: CoreAnimation: timed out fence 2a207
    Mar  5 11:46:09  backboardd[29] <Warning>: CoreAnimation: timed out fence 2a0df
    Mar  5 11:46:09  SpringBoard[33] <Warning>: CoreAnimation: failed to receive fence reply: 10004003
    Mar  5 11:46:09  backboardd[29] <Warning>: CoreAnimation: updates deferred for too long
    Mar  5 11:46:13  backboardd[29] <Warning>: <app ID replaced> failed to resume in time
    Mar  5 11:46:13  backboardd[29] <Warning>: Forcing crash report of <app ID replaced>[136]...
    Mar  5 11:46:14  backboardd[29] <Warning>: Finished crash reporting.
    It might have something to do with the new way iOS7 shows the last active screen of an app as a screenshot and optionally replaces it with the running app, if the app had been killed in the background. That way, it seems that more apps are running concurrently than the device supports. There's often a flicker showing the real app behind the splash screen WHEN I minimize a stuck splash screen.

  • AIR iOS app - how much memory consumption is too much?

    Hi All,
    I have a Flex-based AIR app that runs fine on Android.
    On iOS (iPhone 4) it freezes after it's been running for a while, and I suspect that the problem is that the app is consuming too much memory.
    I'm looking at System.totalMemoryNumber, and it is reporting that the app is using between 17 and 23 MB right before it freezes.
    Is this a lot for an iOS app?
    Is there a better way for me to examine/research/diagnose this? I've done a lot of searching and it doesn't appear that AIR apps get any warning from iOS that memory is getting low...
    Thanks in advance! 
    Douglas

    Hi All,
    I'm answering at least part of my own question...
    I created a test app that added 10K characters to a string on each enterFrame, then ran it until it crashed. It seems to consistently get up to around 175 MB (as reported by System.totalMemoryNumber) before it crashes.
    This happened both with and without multiple other apps running in the background.
    As mentioned above, this is on an iPhone 4.
    So it appears that my current problem isn't caused by excessive memory consumption.
    Douglas

  • Since the latest IOS update, my new iPad Air is freezing and glitching badly. Typing is delayed.

    Since the latest IOS update, my new iPad Air is freezing and glitching badly. Typing is delayed.

    iPad running slow? How to speed up a slow iPad
    http://appletoolbox.com/2012/07/ipad-running-slow-how-to-speed-up-a-slow-ipad/
    If You Think iOS 7 Feels Slow Here’s How to Speed It Up
    http://osxdaily.com/2013/09/23/ios-7-slow-speed-it-up/
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
     Cheers, Tom

Maybe you are looking for

  • Why is  "renameIntegoContentBarrier" in the log of OSX install log ?

    While I was searching for "Intego" on my MBP's disk, to clean up stuff left behind by Intego's VirusBarrier, I noticed that "Intego" was mentioned in the Install.log that I saved from when I reinstalled OSX (erase and install of OSX 10.5.6.) Below is

  • Help on applying Workflow Relevant SAP Notes in Production

    Hello, Can you please provide your input whether we should apply below mentioned SAP Notes in Production system. 1.SAP Note-0001925195 Symptom- In the context of event generation for system and user status, the system no longer generates the event) 2

  • Convert decimal into integer

    Hello i think that's a simple question. I've to convert a decimal number (such as 0,1 ) into an integer number such as 0. What should i do? i tried with functions >> numeric >> conversions >> to long integers but i saw  it has only integers as input.

  • Need help getting OS 10.4.11 to recognize my new Epson Artisan 810

    I just got an Epson Artisan 810 all in one printer. My macbook recognizes the printer (running through my wireless hub) but not the scanner. I have attempted to download the scanner drivers twice now. Do I need to upgrade to Snow Leopard for this to

  • Where can I download Technical Communications Suite?

    The company I work for has purchased Adobe TCS 3.5 and TCS 4, which were not bought through my Adobe ID (hence I cannot download them from the recent orders section). TCS 3.5 was registered to me as shown in my profile, but I cannot find any option t