AIR + iOS + geolocation updates + screen off = FAIL

Where do I start... I have been trying to tackle this issue for quite some time now and every time I think I have the answer something else comes along to crash the party.
I am in the process of building a multi-screen AIR mobile application with the AIR 3.0 SDK that records geolocation updates as they are sent from the device.
Everything works fine on Android but when I test on iOS here are my findings...
Geolocation updates work fine while the app is active.
In order for you app to be eligible for background services you need to set the UIBackgroundModes in your app-xml file for the service you would like to enable... in my case 'location' (which I did)
I found that doing this alone will not allow you to receive the location updates when the app is in the background. As soon as the app is "minimized", it goes into a suspended state and no code is being executed until the app beomes active again ...therefore none of the location updates are received.
I found that setting the 'audio' AND 'location' values together somehow allows me to run code while the app is in the background, just not while the screen is turned off.  The moment you press the power button to turn the screen off, the app goes into a suspended state again.
To test if code can be run, I have set up 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 variable 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 dectivate the app by pressing the home button or open even open another app, the number that gets reported back when I go back to my app is accurate... 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 location 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... Am I doing something wrong?
ANY help would be greatly appreciated.
Thanks!

Hi:
The issue you are facing on iOS is because of the known bug where there are no events fired when the screen is off(including the time events). This bug will be fixed in future releases. I will take care of posting on this thread when the release with this fix is out.
Thanks for posting.
Regards,
Saumitra Bhave

Similar Messages

  • IPod Touch 5th Gen iOS 6 Updates Screen is Blank (White)

    The indicator verifies that I have 15 Updates but my iPod Touch 5th Gen w/ iOS 6 just started showing a blank white screen for the updates screen.
    I've tried powering off and back on, resetting (pushing both buttons for 10 seconds), syncing, transferring purchases, and the wifi reset trick, but none of these things makes any difference to the issue.
    I saw thousands of posts in various forums that this has been affecting people for over a year.  Someone must have found a fix by now that works.  This is a new problem to me, but chances are the real fix will work if someone can share it.  Any one know?  Thanks!

    Try the remaining items of:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • Ios 6 update screen

    my i phone 4 s has started flickering and changeing coulor on the screen , its got ios 6.1.3 can any 1 help

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • After the iOS 7 update my iPhone 5's touch screen is unresponsive some times ,can't even open the lock screen , I had to turn the phone off and turn it on again , it's really frustrating , any solution ??

    After the iOS 7 update my iPhone 5's touch screen is unresponsive some times ,can't even open the lock screen , I had to turn the phone off and turn it on again ,any solutions ?

    Hello kumarsenthil210317
    Check out the article below to start troubleshooting issues with touchscreen response.
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Regards,
    -Norm G.

  • My new iphone 5 is frozen, with the cord to computer symbol on the screen after failing to finish updating to ios 7.  iTunes no longer sees the phone. I've tried rebooting the computer, rebooting the iPhone, but iTunes still doesn't see the iPhone.

    my new iphone 5 is frozen, with the cord to computer symbol on the screen after failing to finish updating to ios 7.  iTunes no longer sees the phone. I've tried rebooting the computer, rebooting the iPhone, but iTunes still doesn't see the iPhone.

    If your computer doesn't see the phone when you plug it in, you may have to take it to an Apple Store.

  • I have two rotating arrows at the top of my screen next to the 3G symbol. Does anyone know how to turn this off b/c it is using all of my battery life? This started after the iOS 5 update.

    I have two rotating arrows at the top of my screen next to the 3G symbol. This happened after the iOS 5 update. Does anyone know what it is and how I get it off, it is draining my battery?

    At first read, I also thought it sounded a bit snide.  Who here has read the entire manual before going to the web for a quick search? (Not me, and in fact, I found my answer - to this very question, by reading this post WAY faster than if I had read the manual.  What is so wrong with that?) 
    That is the beauty of having support forums.  If it is a bother to answer, without being snide, one is not obligated to do so.  And my apologies if he was not being snide... but there maybe a better way to point out the manual, such as "I have included a link to the searchable manual which may be of assistance to you next time you are puzzled by your iPhone's behaviour". 
    Just my 2¢.

  • How to cancel/reset iOS 7 software update that's failed?? Please save my sanity!

    I tried to update my iPod touch 5th gneration (32GB) to iOS 7 over the air last night at around 19.00 UK time (from the device itself, rather than via itunes on my PC). This was the second attempt after the first (initiated at about 17.57 UK time) gave me an unsuccessful error message after almost completing the download. But now all I have on the software update screen is the 'less than one minute remaining' message. The cogs are rotating in the little icon window but NOTHING ELSE is happening & I cannot get the updating message off. It is now 15.11 UK time the following day & I'm STILL getting the 'less than one minute remaining' message... this is obviously not the case BUT I cannot seem to find any way whatsover of stopping/cancelling the failed software update.
    I've tried everything i can think of: shut wi-fi off, signed out then back in to my itunes account, reset the device (long press of home & sleep buttons), power off then back on, & I am at a total loss & becoming incredibly frustrated.
    I've managed to update on my iPhone no problem but my ipod seems to be broke!! Please can anyone out htere help me?!? How do I cancel the failed download or re-set it to d/l again??

    yes I've done the update OTA but why this screen cant go
    it keep asking me to connect to itunes and when connecting the I tunes appear a massage

  • Touch Screen unresponsive after iOS 8 update

    My 1 year old 64GB iPhone 5 touch screen started to become unresponsive after iOS 8 update
    It's not consistent. Touch screen functionality will seize whilst phone is being used for either answering calls, typing messges, surfing, gaming etc and won't become responsive until it is turned off and on again (via power button). Home button is functioning with no problems.
    As the phone is now out of its warranty period I want to verify if it's the OS that's causing this or do I actually have a hardware issue.

    I have the same issue. iPhone 5, 1 year-old, not even a scratch.
    Sometimes my touch screen works, sometimes not. When it works, it is just for some seconds, then some phantom touches start to happen all over the screen, but specially, when i'm typing, it types z or m, when I try to type something in, and it receives it, it will act as z or m again....
    If I switch off my screen and switch on again... sometimes it will work, sometimes it wont... veeery unstable.
    I considered downgrading to 7.1.2 but since I heard it is ilegal I decided to wait for a new iOS release.... any suggestions? (already wiped it and the issue continued...)
    Is it really not recommended to downgrade it and have my phone funcionalities back?

  • I turned my iphone off to update and its stuck in the update screen!

    I turned my iphone off to update and its stuck in the update screen its been 12 hours what can I do???

    IF ios 8 is not working properly in iphone 5.,!! Then i should not update my iphone 4s to ios 8..!! If i do so that will be blast hahahah

  • I was trying to update my Ipad to IOS 8, the screen is all black with the apple logo on it and the progress bar is stuck,

    I was trying to update my Ipad to IOS 8, the screen is all black with the apple logo on it and the progress bar is stuck.
    I can't turn it off, and when i connect it to itunes, it doesn't display

    Try putting the iPad in restore mode and see if iTunes recognizes it. The steps are below:
    Turn your iPad off.
    Hold down the Home button and plug it into your computer. Keep holding the Home button until you see a screen telling you to connect to iTunes.
    iTunes should show you a popup saying that there is an iPad that is in Recovery Mode and needs to be restored before you can use it. Click OK.
    Click on Restore iPad

  • TS1398 Hi. My wifi keeps disconnecting. I kkep turning the wifi on and off in settings but will disconnect again after a minute or so. I use an ipad2 and my ios is updated. How to troubleshoot? - kay peralta

    Hi. My wifi keeps disconnecting. I keep turning the wifi on and off in settings but will disconnect again after a minute or so. I use an ipad2 and my ios is updated. How to troubleshoot? - kay peralta

    Is this happening with one particular network or with all?  Make sure iOS is updated on the device.
    Try this:
    Reboot 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. Then try to connect to network.
    Go to settings, Toggle airplane mode on/off. Make sure bluetooth is off. Turn on wif (airplane mode off). Try to connect.
    Reset Network Settings
    Go to settings/general/reset/reset network settings. Then try to connect to network.
    If its your home router, then reboot router by unplugging for 5-10min. (do this while you're resetting network settings).
    If problem persists, then check for firmware updates on your router.(you check router manufacturer support website for downloads and instructions).

  • Hello, my mac book air won't update. Every time i try it goes onto the purple starry screen and stays that way for hours, so i just have to shut it down. I have deleted a lot on my laptop so there is enough space, please help?

    Hello, my mac book air won't update. Every time i try it goes onto the purple starry screen and stays that way for hours, so i just have to shut it down. I have deleted a lot on my laptop so there is enough space, please help?

    I believe that system has a hall sensor on it to detect when the lid is closed so it can put the system to sleep and/or disable the monitor so it can be used with an external monitor only. If the sensor is marginal or has a bad cable, it may intermittently cut the monitor on and off, and may likewise put the system to sleep. One way to check would be to plug in an external monitor and if the laptop's screen cuts off or doesn't show up, start using the trackpad and press on a non-typing key like the shift key. If the external display suddenly pops and becomes active while the laptop display remains black, it's probably a problem with the sensor or the cable/connection. You might be able to fool the sensor into kicking on and off by moving a magnet over it. It's located on the left had side of the base with the unit opened up, and right over the audio output plug.
    I know of some people that put a small magnet right over the hall sensor's location so the laptop display turns off and they use the system with an external monitor, keyboard, and mouse. If fooling with magnets, make sure they're small and don't get them close to the hard drive because a strong magnet can wipe them out.
    I don't know if this will help you much, but it might.

  • Lagging and Screen Freezing After iOS 4 Update

    Hey all. I have the iPhone 3GS and ever since I updated the software to iOS 4, my iPhone has been lagging and freezing. The lag is significant. For example, I'll start typing something using the keyboard and the letters won't show up for another 5 seconds after I have tapped them (sometimes even longer, like 15 seconds because the screen temporarily freezes). My phone has also frozen before. Today, it froze for the third time in about a month. Last night, while charging and while I was watching videos on YouTube, the screen froze completely and I was unable to lock the screen, go Home, or turn off the phone to restart it. I had to unplug it from its charger and let the battery burn out. Has anyone else had the same problem? How do I fix it? Should I take it to an AT&T store or Apple Store? I would really appreciate your help. Thank you.

    Hey Zealia
    I also have the iPhone 3G and since I updated the software to IS0 4, my iPhone has also been lagging but not freezing as in your case. I agree that the lag is significant as it wasn't before the update. When I press the home to slide to open the phone and enter my pin number it takes about an extra 5 to 15 secs for the 4 satrs to show up and then another 10 sec for it to go to the home screen. When sending SMS it takes about the same time as you are experiencing with the 5 seconds gap between typing and seeing it on the screen and the send bar only appears as it gets to end of sending the message so never too sure if it is being sent or not until the bar appears at the last 5 secs at end of sending. It also lags when you open a SMS takes about another 10 - 15 secs before it opens nd the list just goes on. Not sure if other users are having the same problems or if APPLE are aware since the iOS 4 update of these issues. If anyone knows how to get in touch with APPLE to make them aware of these problems and that a fix is needed can you let us know? Thank you!!!

  • HT4718 My macbook air is stuck at the "installing software updated" screen while installing update for the osX. What should I do?

    My macbook air is stuck at the "installing software updated" screen while installing update for the osX. What should I do?

    Welcome to Apple Support Communities
    If your Mac has been installing software updates for a long time, Software Update is probably frozen. Hold the Power button until your MacBook Air turns off, and turn it on again. OS X should start up.

  • Cannot scroll in update screen for iOS 6

    Scrolling doesn't work in update screen. If several apps have updates and you try to check what's new in each app, you cannot scroll down.

    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - Try when connected to another network
    - Update via iTunes on a computer.

Maybe you are looking for

  • Help on Java to ASP page

    I have written a zip function that it's used on an ASP page. The java class has a main static function which is as follows: public static void main(String[] args) inside the main function I have calls to other functions which will perform the zipping

  • Hyperlink in Word opens as garbage text

    I have a pdf document that's part of an external Web site that I want to link to in a Word document. When I make the URL a hyperlink in Word and click on it, the Web site opens but the page is a mess on unreadable characters. But if I copy/paste the

  • Manifest file is wrong somehow...

    Hey, So I am trying to create a JAR file for my project, my project uses the MySQL connector. So I click the jar file...the first GUI opens up, but it closes after you try to sign in because it cannot find the jdbc connector... Am I doing anything bl

  • Livecycle designer form accessibility in PDF

    HI! I have created a form in LiveCycle.  When it opens in PDF and I run the accessiblitiy checker it says that the language is not defined for the form?  How do I define it. Also In PDF there is a Keywords section that I can't figure out how to popul

  • Is it possible to use JSP with EJB

    A pretty dumb question. JSP + Servlet + DB can be used together to write a j2EE application, such as some shopping system. But what's the usage for EJB? Does it still need JSP to do the output to client?