Sound pausing shortly when user locks iOS device?

Hi,
The bug causing a background sound to stop, when a user locks the screen on iOS device, has been lately fixed in AIR 4.0 beta.
However, now with beta 4.0.0.1390, when the device is locked or goes into sleep mode, the sound stops for 2 seconds (sometimes a bit more, it depends on the device power), then the sound continues playing. It happens on various devices (iPhone 3GS, iPod 4 and iPhone 4S) and multiple OS (5.1.1, 6.0.1,  and 7).
My code is very simple, and uses the standard Sound.play() function. Of course it is better than the previous behaviour, since at least now the sounds continues after a while, but this cut can get annoying. Before I submit a bug, do you guys encounter the same issue?
Thank you!
Frédéric

Hi Nimit,
Thank you for validating this issue. I created a bug report here: https://bugbase.adobe.com/index.cfm?event=bug&id=3692617
Since I am creating an audio app, this one is critical for me.
Good luck!
Frédéric

Similar Messages

  • Sounds stop playing when user locks screen on iOS with AIR 3.9 Beta

    We built a simple application that should play sounds when in background and when the screen is locked.
    Since we updated to the latest AIR 3.9 Beta SDK, all sounds stop playing when the user locks the screen on iOS.
    The sounds resume when the screen is unlocked.
    - it works on Android
    - we use renderMode : cpu
    - we use UIBackgroundModes : audio
    - we use NativeApplication.nativeApplication.systemIdleMode=SystemIdleMode.KEEP_AWAKE;
    - sounds play when the app is in background
    - was working great with AIR 3.8 SDK
    Any help would be greatly appreciated.
    Thanks!

    Thanks for reproting the issue, we have an internal already logged bug for this, which is under investigation at the moment.
    -Nimit

  • File Missing from iPhoto when syncing to iOS devices

    When trying to sync any iOS device with my MacBook, I get an error stating that a file is missing.  It only happens when I'm trying to sync photos, so I believe that a file is missing on my MacBook from iPhoto.  Has anyone encountered this issue before?

    Open the iPhoto Library with the finder:
    Click to view full size
    and move the folder titled iPod Photo Cache Or iPhone Photo Cache to the Trash. DO NOTHING ELSE! Close the package, launch iPhoto and try syncing again.
    OT

  • Key Photo lost when synching with iOS devices

    Hi and thanks for reading.
    I have noticed that in the last months, when I synch my iPhoto Events with my iPhone one iPad, the Events on iOS devices are not labelled by the same key photos I have on the MAC on iPhoto.
    Does anybody know the reason?
    Thanks bye

    The iphone/ipad is not a backup/storage device.  They simply mirror the selected content of the computer to which you sync.
    Copy everything from your old computer, or your backup copy of your old computer, to the new one.

  • Crash when selecting an iOS device from the 'Devices' navigator

    While waiting for the iTunes 11.1.4 mess to get sorted out, I just noticed that iTunes 11.1.3 now crashes whenever I select an IOS devices (iPad4, iPhone4s) from the 'Devices' navigator. This is a recent phenomenon since the last time I sync'd which was a week ago. I'm able to sync/backup ok, but I can't navigate the device with out crashing. The following Windows application error event gets generated when I click on the device:
      Faulting application name: iTunes.exe, version: 11.1.3.8, time stamp: 0x5274a87d
    Faulting module name: CoreFoundation.dll, version: 1.630.18.0, time stamp: 0x50a590d1
    Exception code: 0xc0000005
    Fault offset: 0x00055d65
    Faulting process id: 0x16c8
    Faulting application start time: 0x01cf1a0b81ee532a
    Faulting application path: C:\Program Files (x86)\iTunes\iTunes.exe
    Faulting module path: C:\Program Files (x86)\Common Files\Apple\Apple Application Support\CoreFoundation.dll
    Report Id: f1274fa4-85ff-11e3-948b-485b3912d7df
    This has all the hallmarks of crash resulting from an attempt to digest bad data. Since my iOS devices have pretty much the same stuff on them, I think there must be a bad app or the like causing it. Probably someing I picked up while take updates directly from the App Store and then syncing back to iTunes. For kicks I tried connecting an ancient iPod 3d gen nano I have and that worked flawlessly, so I'm even more suspicious that it's a data corruption problem.
    I'm new to the Apple support community ecosystem. Is there anything I should be doing to raise a defect / bug with Apple? Have others experienced this sort of thing?
    Thanks,
    -p

    Are you asking about syncing using iTunes?
    iTunes will sync jpeg previews images to your iOS devices, that are reduced in size. It creates a cache inside your photo libraries - the iPod Photo Cache.
    See: iTunes: Understanding the iPod Photo Cache folder
    or: Syncing photos using iTunes
    If you want to have the original raw photos on your iDevices, upload them using the Photo Stream; that supports a variety of other formats ( JPEG, TIFF, PNG, and most RAW photo formats).
    http://support.apple.com/kb/HT4486

  • FaceTime on Mac (Yosemite) does not connect when calling an IOS device

    Hi all,
    Since my upgrade with Yosemite, I seem to be having issues with FaceTime (video/audio) calling iOS Devices. iMessage works just fine with Yosemite. But when i attempt to call the other party via FaceTime, i could hear it ring but cannot connect. Anybody else who has the same issue and does anybody know how to fix it? It would seem to be a Yosemite issue, because when i tried using my iPad and iPhone to call via FaceTime, it works just fine using the same Apple Id i used for the Macbook Pro (Mid 2010). But when I use my Mac to call the iPhone.. It rings but it does not connect.. I hope they fix this with the next update..

    For the ones who are interested: the problem has been "solved".
    Solution: none. I found out that the iPhone 4 from my girlfriend caused the problem. The iPhone made it impossible to FaceTime to each other from iPhone <> MacBook Pro. I think it's because the discontinued iOS support for the iPhone 4.
    Since she has the iPhone 6 FaceTime now works wonderful without any problem.

  • Lag When Programming For iOS Device With Adobe Flash Professional.

    Hi, I'm trying to make an Application for iOS device, Everything is find, but when i installed it on my iphone 4 and my iPhone 4S my game start lagging, i don't what to do, i tried to simplifed the code but nothing is working i dont know if it's in the rendering or when i'm trying to export, but on my iPhone it's lagging.
    Any Help Please, Solution ?
    Thanks
    Francis

    Target gpu on the device you're testing .. you'll get much better results.
    You can do it on the xml configuration file on <renderMode> or if you're publishing in flash on the settings of renderMode select GPU.
    Also get rid as much as you can from vector graphics and use bitmaps instead.
    You can use Adobe's method of converting a vector in bitmap like this : myMC.cacheAsBitmap = true;
    And also if you're moving an object, scaling or changing it's transparency use myMC.cacheAsBitmapMatrix = new Matrix();
    These are some basic optimization tips.

  • ITunes Freezes when connecting ANY iOS device

    So, my issue is exactly what the title describes, but let me give some more detail.
    I have a MacBook Pro (OSX 10.9.5) that's currently running iTunes 11.4. My issue is that every time I connect any of my iOS devices (or my wife's or friends') as soon as iTunes begins to detect an iOS device, it freezes. The computer doesn't freeze, the device doesn't freeze, just iTunes - as soon as the device name pops up in the upper right corner of iTunes, the program freezes.
    This issue did not happen on previous versions of iTunes (I think on 11.2 and earlier), but as soon as I updated, it started happening. For a while, I just kept a previous version of iTunes so that I could keep syncing my devise, but when I got my iPhone 5 (recently) it won’t requires the newer iTunes version, so I can’t keep doing that.
    I have tried uninstalling and reinstalling iTunes multiple times with no success. I have tried resetting the devices, making sure all updates are done on all devices, etc.
    To be clear, I have tried this with multiple different devices (iPod Touch 3rdGen, iPad 2, iPod Touch 4thGen, iPad Mini, iPhone 5) and it does exactly the same thing with all of them – it does not happen with any of these devices when connecting them to my wife’s PC or my work MacBook Pro. This makes me assume that it is an issue with either my Macbook Pro, or with how iTunes is installed on it.

    Alright, here's what I got for you from the console:
    10/8/14 7:38:06.415 AM SyncServer[2210]: [0x7fa96b506650] |SQLite|Error| Detected out-of-space situation: 0 (Undefined error: 0). 197332201472 bytes free in admin.
    10/8/14 7:38:06.417 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer[2210]) Exited with code: 1
    10/8/14 7:38:07.058 AM iCalExternalSync[2161]: [0x7fd62150bac0] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    10/8/14 7:38:07.308 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer) Throttling respawn: Will start in 10 seconds
    10/8/14 7:38:15.626 AM iTunes[2204]: Entered:_AMMuxedVersion2DeviceConnected, mux-device:2
    10/8/14 7:38:15.627 AM iTunes[2204]: Failed to create replacement string
         **repeat previous line 33 more times**
    10/8/14 7:38:15.636 AM iTunes[2204]: tid:26c0b - unable to query device capabilities
    10/8/14 7:38:15.636 AM iTunes[2204]: Failed to create replacement string
         **repeat previous line 83 more times**
    10/8/14 7:38:16.614 AM com.apple.usbmuxd[1468]: LOCKDOWN_V2_BONJOUR_SERVICE_NAME is _apple-mobdev2._tcp,98c70826
    10/8/14 7:38:17.337 AM SyncServer[2214]: [0x7f9dfbd06750] |SQLite|Error| Detected out-of-space situation: 0 (Undefined error: 0). 197332180992 bytes free in admin.
    10/8/14 7:38:17.339 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer[2214]) Exited with code: 1
    10/8/14 7:38:17.574 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer) Throttling respawn: Will start in 10 seconds
    10/8/14 7:38:17.854 AM iCalExternalSync[2161]: [0x7fd62150bac0] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    10/8/14 7:38:18.456 AM com.apple.SecurityServer[14]: Session 100047 created
    10/8/14 7:38:18.457 AM com.apple.SecurityServer[14]: Killing auth hosts
    10/8/14 7:38:18.457 AM com.apple.SecurityServer[14]: Session 100043 destroyed
    10/8/14 7:38:27.603 AM SyncServer[2217]: [0x7fc1435068a0] |SQLite|Error| Detected out-of-space situation: 0 (Undefined error: 0). 197332176896 bytes free in admin.
    10/8/14 7:38:27.605 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer[2217]) Exited with code: 1
    10/8/14 7:38:28.692 AM iCalExternalSync[2161]: [0x7fd62150bac0] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    10/8/14 7:38:28.837 AM AppleMobileDeviceHelper[2216]: [0x10030c760] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    10/8/14 7:38:28.945 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer) Throttling respawn: Will start in 9 seconds
    10/8/14 7:38:38.038 AM SyncServer[2218]: [0x7fee62506650] |SQLite|Error| Detected out-of-space situation: 0 (Undefined error: 0). 197332176896 bytes free in admin.
    10/8/14 7:38:38.040 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer[2218]) Exited with code: 1
    10/8/14 7:38:38.356 AM iCalExternalSync[2161]: [0x7fd62150bac0] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    10/8/14 7:38:38.607 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer) Throttling respawn: Will start in 10 seconds
    10/8/14 7:38:39.000 AM AppleMobileDeviceHelper[2216]: [0x10030c760] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    10/8/14 7:38:48.635 AM SyncServer[2219]: [0x7fd2bad068a0] |SQLite|Error| Detected out-of-space situation: 0 (Undefined error: 0). 197332078592 bytes free in admin.
    10/8/14 7:38:48.637 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer[2219]) Exited with code: 1
    10/8/14 7:38:49.162 AM AppleMobileDeviceHelper[2216]: [0x10030c760] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    10/8/14 7:38:49.284 AM iCalExternalSync[2161]: [0x7fd62150bac0] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    10/8/14 7:38:49.315 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer) Throttling respawn: Will start in 10 seconds
    10/8/14 7:38:59.418 AM SyncServer[2220]: [0x7fa659506650] |SQLite|Error| Detected out-of-space situation: 0 (Undefined error: 0). 197332078592 bytes free in admin.
    10/8/14 7:38:59.420 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer[2220]) Exited with code: 1
    10/8/14 7:39:00.294 AM iCalExternalSync[2161]: [0x7fd62150bac0] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    10/8/14 7:39:00.542 AM com.apple.launchd.peruser.501[173]: (com.apple.syncservices.SyncServer) Throttling respawn: Will start in 9 seconds
    10/8/14 7:39:00.576 AM AppleMobileDeviceHelper[2216]: [0x10030c760] |Mingler|Error| failed to connect to the server: NSInvalidReceivePortException connection went invalid while waiting for a reply because a mach port died
    I sorted through most of the code and I don't think I got anything too extraneous in there nor do I think I got any of my personal info in there. Any help you can provide would be much appreciated. Thanks in advance!

  • How do I stop iTunes from compressing audio/photos when transferred to IOS device? (iPad

    Hello,
         I have noticed that 13GB of photo's only equals around 3GB on the iPad and iPhone. I noticed the same thing with audio. Although, I do not notice the compression with video.
         My question is, how do I stop it from compressing photo's if I want to? I understand it saves space, but what if I wanted to email the full size photo to someone. This also may defeat the purpose of some editing programs. I would like to know how to do the same with audio.
         It does not affect the original files in anyway, correct? Also, I using the manual drag and drop option for Movies and audio. I sync with the photos.

    With syncing photos you can't change how they are synced, iTunes will 'optimise' them when copying them over to the device - and no, the original photos on your computer are not affected, iTunes creates separate 'optimised' versions of the photos on your computer and copies those over.
    If you want the original versions of the photos on your iPad then (and if there were only a few that you wanted full-scale) you could email them to yourself and use 'open in' in the Mail app to copy them to the Photos app, or use the camera connection kit with your iPad to copy them via an SD card to it - photos copied via the kit are copied full resolution, they aren't changed.
    Or there are third-party photo management apps such as Photo Manager Pro which can copy photos to/from your computer via the 'file sharing' section on the device's Apps tab in iTunes, they will be copied as-is - that app can also copy photos to/from it and the Photos app.
    For your music, on the device's Summary tab when connected to your computer's iTunes, under the Options heading have you currently got the 'convert higher bit rate songs to ...' set ?

  • Keynote slide builds removed when imported to iOS device. Please help!

    I need my slide transitions to work on 5 minute intervals when run on my ipad. I was led to believe that if I set it up on my iBook that when I moved it over to my ipad they would still work since the current ipad transitions only allow 10 seconds. Any ideas on how to work around this?

    Maybe here:
    iOS: Troubleshooting backup issues in iTunes
    To recover now, close iTunes, use the Task Manager if necessary, disconnect the iPod and reboot the computer. They try restoring the iPod.. You may have to place the iPod in Recovery Mode to allow the restore.

  • HT1212 how to passcode lock iOS device and not disabled after wrong passcode

    My toddler keep making phone call, so I set up the passcode, now he keep entering the wrong passcode and which disables my phone for 1 minute and then connect to itunes. What is best option for me in this case?

    I've had a toddler but she's a bit older now. We just kept things out of her reach or put away. There really isn't a technical solution unless you want to use shock therapy.
    We also used other techniques to discourage her from things we did not want her into. This included when appropriate the "No" word or diverting attention to something else. Maybe you just need to put the iPhone away when your toddler is active.

  • Is there a way in iTunes to save or export the list of "total warnings" that can appear when syncing an iOS devices?

    I often have clients encounter a list of the songs/movies/apps that won't sync with their iPhone or iPad -- usually due to missing items in thier iTunes library.
    Is there any way to copy/save/export that list to facilitate the process of resolving the missing files? That would enable me to fix the issue(s) without the presence of my client or their phone.

    I would just take a screen shot, but I'd end up needing to take dozens, as the attached screenshot shows...
    I can't select any text in the warning window, or I'd just copy and paste.

  • Do movies I buy stay in iCloud when deleted from iOS device?

    We have two iPhones and an iPad in the family, each with the least amount of memory you can get. If I delete a movie or TV show I have purchased via iTunes, because of space issues for example, does the movie or show stay in iCloud to be available to me to watch again later, or even for the first time if I haven't actually watched it already?

    It depends on what country you're in, what movie it is, and whether or not it's still available in the iTunes Store; rented movies are never stored in the iCloud.
    (91229)

  • I only have a MacBook Air but no iOS devices. Does iCloud offer me any benefits?

    After digging through support documents, it appears that iCloud is really only meant to support the sync and storage of files for those users with iOS devices. I have one MacBook have the iWork apps as well as MS Office for Mac. I have no other Apple devices. I use Windows at work and have an Android phone. I was really hoping to use iCloud for redundant offsite storage to backup all of the work done on my Macbook, with the added luxury of being able to open said work from a remote location (i.e. on my Windows PC at work since I have MS Office on both platforms).
    Am I correct in thinking that iCloud will not provide the features I am looking for?

    1. System Preferences > Energy Saver
        Click "Restore Defaults" button.
    2. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".
    zetun wrote:
    I have to shake the computer for the screen to come back and it will just black out every now and then.....
    Something loose inside?
    You have to take the computer to the Apple store again to have it checked out.
    Best.

  • File.upload on Air SDK for iOS devices failed to send http request to server.

    I am trying to use ActionScript's File.upload to upload a file on Air SDK for iOS8 environment, but the File.upload does not work properly. No handler about the file upload is executed after File.upload is invoked, and no exception is caught. When I check the network traffic of the server side, I found that no http request even hit the server after File.upload is executed. The code snippet here is very simple.
      private var file:File;
      private var dir:File;
      //This method is executed to create a file and upload it when the Upload Button is pressed.
      protected function OnUploadButtonPressed(event:MouseEvent):void{
      var str:String = 'This is test';
      var imageBytes:ByteArray = new ByteArray();
      for ( var i:int = 0; i < str.length; i++ ) {
      imageBytes.writeByte( str.charCodeAt(i) );
      try{
      dir = File.applicationStorageDirectory
      var now:Date = new Date();
      var filename:String = "test" + now.seconds + now.milliseconds + ".txt";
      file = dir.resolvePath( filename );
      var stream:FileStream = new FileStream();
      stream.open( file, FileMode.WRITE );
      stream.writeBytes( imageBytes );
      stream.close();
      file.addEventListener( Event.COMPLETE, uploadComplete );
      file.addEventListener( IOErrorEvent.IO_ERROR, ioError );
      file.addEventListener( SecurityErrorEvent.SECURITY_ERROR, securityError );
      file.addEventListener(ErrorEvent.ERROR, someError);
      file.addEventListener(ProgressEvent.PROGRESS, onProgress);
      file.upload( new URLRequest("http://10.60.99.31/MyPath/fileUploadTest.do"));//This line does not work. No handler is executed. No http request hit the server side.
      } catch( e:Error ) {
      trace( e );
      //Complete Handler
      private function uploadComplete( event:Event ):void
      trace( "Upload successful." );
      //IOError handler
      private function ioError( error:IOErrorEvent ):void
      trace( "Upload failed: " + error.text );
      //SecurityError handler
      private function securityError(error:SecurityErrorEvent):void{
      trace( "Security error:" + error.text );
      //Other handler
      private function someError(error:ErrorEvent):void{
      trace("some error" + error.text);
      //Progress handler
      private function onProgress(event:ProgressEvent):void{
      trace("progressHandler");
    When executed on Air Simulator, it works fine as expected, and the file is successfully uploaded to the server. But When executed on iOS devices(in my case, iPad), as I explain early, no handler about the file upload is executed, and no the http request even hit the server. So I think the problem may be in the client side. It seems that the Air SDK for iOS just failed to send the http request for some reason.
    To make my problem more clear, I list my environment below:
    Development Environment:  Windows7 (64bit)  / Mac os 10.9.4 (Tested on  OS platforms.)
    IDE: Flash Builder 4.7
    Air SDK:  3.8 / 16.0.0 (After I updated to the lastest Air SDK 16.0.0 , the problem still exists.)
    Application Server:  Tomcat7 + Spring
    Target OS: iOS 8
    I have been struggling for this for days. So I really appreciate it if anyone has any idea about this.
    Thanks in advance.

    Hi bluewindice ,
    As you have quoted ( ActionScript's File.upload does not work on Air SDK for iOS devices ) , this issue has been replicated at our end, and our team will be working on it.
    Thanks,
    Tushar

Maybe you are looking for

  • Nav bar and headers not showing up in IE9

    After I select the ActivX option "allow blocked content" the navigation bar and white headlines disappear in the IE9 browser. Any thoughts or suggestions? Thank you! www.moxiespeak.com/indextest

  • How to read an E71-encrypted MicroSD in a PC

    Hi to everybody. I think disk encryption it's an excellent feature.  I use it in my laptop, but the main problem is: how can I read the encrypted disk in another environment? I have my E71 8GB MicroSDHC encrypted by the phone.  it works excellent, bu

  • How do I sort by "version #"

    I have Aperture 3.2.4.  I am working on a project with about 1300 photos.  Somehow I now have duplicates ("-Version 2") of every photo.  Problem is that some of the version 2's I crated intetntionally while editing originals.  Others have just appear

  • My dad just got the new MacBook for Christmas. His friends all use PC's....

    My dad just got the new MacBook for Christmas. His friends all use PC's and they keep sending him these joke email attatchment files that he can't open on his Mac. One was a .wma audio file, presumably some were video files. Is it possible for him to

  • Applications for the hr forms in HR abap

    Hi All,   please send me the application, output type,transaction and the tables for the following hr forms. 1. Benefits & Enrollements 2. Time Sheet 3. Retirement & Pension 4. Payroll Check 5. Direct deposit advice    Above forms are pertaining to U