Keep playing sound after pressing the home key in iOS

Hello!

I have an application that loads an MP3 from a URL and then read it (Flash cs6 - Air 3.9)

In Android (when I publish it as APK), when the user press Power, or reduce the App, the sound continues to play (I like)

But the same code in iOS, when I press Home or Power, the sound "paused" and continue playing only after I re - activate my App.

I tried to resolve it with this line of code:

NativeApplication.nativeApplication.executeInBackground = true;

But without success.

Everyone please help me what should I do to prevent the INTERRUPTION of the sound in my application after pressing Home and Power iOS ?

Thank you in advance.

Hi Pouradam,

I know it sucks.

On iOS, the only way to have a sound be played while the application is reduced to a minimum, is if the application is actually running in the background (obviously).  To do this in the application manifest, you must set UIBackgroundModes = audio, as follows:


UIBackgroundModes

audio

]]>

However, since "batterygate" on iPhone4, Apple has been tightening its policy on applications that unnecessarily run in the background.  If the sound is supposed to play continuously (ex: music player), then they will * probably * be ok with it.  But if the sound is intermittent (even if it's the sound a clock radio alarm), they will likely ban.

So, if you want your application to play intermittent sounds while in the background, your only chance is to configure notifications and associate a sound for notifications if you can.

If you try the road local of notification, to help DONKEY of Juan Carlos Pazmino, however, that the sound function is broken right now, at least on iOS 5.1.1.  Also, at the time where he worked, I was not able to choose the sound through the app: I got was the standard "ding" sound.  Maybe push notifications are more robust.

See you soon.

Tags: Adobe Animate

Similar Questions

  • Speech recognition automatically press the home key

    Hey, I had a problem with the text-to-speech software since I started using it.  If to dictate or Commander, several times when he does not understand me it displays "what was it?" then automatically, press the home key.  It's especially annoying when you try to use the becauset internet it always takes me to my home page when he doesn't understand me.  I hope that this can be easily treated.  Thank you.

    Hello

    Did you change your computer?

    I suggest you to follow the links and check out them.

    Set up speech recognition

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-speech-recognition

    Dictate text using speech recognition

    http://Windows.Microsoft.com/en-us/Windows-Vista/dictate-text-using-speech-recognition

    Common commands in speech recognition

    http://Windows.Microsoft.com/en-us/Windows-Vista/common-commands-in-speech-recognition

  • BlackBerry BOLD 9700 smartphones - Messenger of BB will not play sound when on the home screen

    Bold 9700

    I have problems with my BB Messenger doesn't play does not sound, but always vibrant, when on the home screen.

    It will play the sound when in other applications, but not the home screen.

    I have the sound to play "always."

    Any help would be greatly appreciated

    Open 'Profiles' then open 'Edit profile' and then select the profile that you are currently using.

    Here to expand 'Instant Messages' and go to "BlackBerry Messenger Alert", make sure that you have a selected ringtone, and that the volume is not set to silent.

    I hope this helps.

  • Audio does not play when you press the arrow keys.

    Hello

    When I'm working on a project and I press the left or right side of the keyboard arrow keys to move a picture in the timeline, the audio does not play.

    He used to play and also appear in the audiometer as a level, but recently he has ceased to be. Maybe it was because of an update?

    Is it possible to turn it back on? Maybe I hit a button by accident and disabled the function.

    If it is due to an update, is there a way to revert to a previous version?

    Looking forward to you soon.

    Thank you for your time and help in advance.

    All the best

    George

    Mac OS X El Capitan 10.11.1

    iMac 27 inches, end of 2013

    Processor Intel Core i7 3.5GHz

    16GB 1600 MHz DDR3 memory

    NVIDIA GeForce GTX 780M 4096MB graphics

    First Pro CC 2015.1

    9.1.0 (version 174)

    Please let me know if you need more information and I will be happy to provide it.

    Try pressing SHIFT + S, which is the shortcut for "toggle Audio while Scrubbing."

  • Insert 4 spaces instead of a tab after pressing the tab key?

    I set the indent with 4 spaces in code format and it works fine when I press "ENTER". But DW still insert a tab rather than 4 spaces when I press "TAB". The results is all my codes have being full of spaces and tabs that make my codes control management tool (Mecurial) confused.

    Use the command > apply Source format.

    Nancy O.

  • How can I make windows play a sound when you press the SHIFT key

    My keyboard doesn't have a light to indicate when it is capitalized. He used to play a sound, but it is more the fact after that I said not to do. However, when entering passwords that are case sensitive, it gives the wrong password. Can someone tell me how to re - turn on the sound.
    Its a Logitech MK320 wireless

    Look in Control Panel > accessibility, and then click "make the keyboard easier to use." Check the box "turn ToggleKeys. This will produce a note when you press the lock keys. Or just check the other box beneath it. In this way, you can turn the tone on or off without having to return to these settings.

    SC Tom

  • How can move the pointer after press the play button when editing any file

    My PC is Windows 7, I buy and used hearing CS6 for more than 6 months, but I find the pointer can't move after press the reading change when we file.

    Your audio device is disconnected from the hearing. Go to Edit > Preferences > Audio hardware and restore the connection. When the transport fails, that's the only reason!

  • Why Firefox opens another Page on Startup tab whenever I hit the home key (which lead me to my home page under the current tab)?

    When I type the original Firefox key brings back me to my home page (AOL), but also opens a new tab in Mozilla Firefox Start Page. I find myself with plenty of unwanted tabs.

    This has happened

    Each time Firefox opened

    is always

    Hello Ismahil.

    Please, check the following:
    Click on Tools > Options.
    Then click on general.
    Now, it must be said: http://aol.com/ (or similar), but please check if it has something after that. For example, if there is a | after him, who says FF open 2 pages when you press the home button: AOL and the other page, which in this case is a blank page.

    If you see a | in there, go ahead and set or remove, if you wish. If this isn't the case, please post here and let me know!

  • Press the backslash key shows the start menu, how to stop it from happening?

    Original title: keyboard shortcut

    Hello

    Windows XP system.  Any program I use, when you press the backslash key, the menu Start come.  How can I disable that I can't find a list of shortcuts for this a key operation.
    Thank you.

    It sounds as if you have inadvertently created a "shortcut" that makes the Act key backslash as the Windows key.  Or you may have a faulty keyboard.

    • What happened to your system, just as this behavior started?
    • You have another keyboard that you can try (and Yes, that happens)?
    • What do you use for an antivirus application and is his current subscription?
    • Establishing general principles, download, install, update and run scans with each of these two free tools; do not run the scans at the same time; Let tools delete or quarantine any malware they find; You can uninstall when in fact, if you want to
      MalwareBytes AntiMalware
      SUPERAntiSpyware
    • What is the brand and model of your keyboard?
    • You have a special keyboard installed, for example, Microsoft IntelliType software or "DellTouch programmable keys?
    • You have XP Home or XP Pro?  And what service pack?
    • You can also download and run The key Mapper to verify or reset the mappings of keys.
  • Pressing the Tab key activates the player controls

    I am simulating an application that requires the use of the Tab key. In Captivate, the Tab key is a shortcut for click box that passes just to the next slide. During playback when the tab key, in addition to advancing to the next slide, a player control button is activated as indicated that she has highlighted. In the simulation, the user may need to press the Tab key, a number of times, which in turn moves to the next slide and highlights the next player button. Once the user pressed Tab the required number of times, one of the controls is highlighted. In the simulation, users usually need to press ENTER after a sequence of tabs, which in addition to performing the desired action simulation, also performs the control of the player highlighted button. This could be something quick return to output and everything. That's the problem in a dirty word.

    I tried 'tab_no_yellow.swf' and 'tab_no_yellow_global.swf' assistants, nothing helps. The result of the use of these files has been changed. They understand without change to action by all, at all, and the user must press Tab twice to each single press in the real application.

    I tried to disable the player in total controls which completely weird tab has led key behavior. In this configuration, pressing the Tab key seems to go through a list of player controls 'hidden' before the scheduled execution, click action box. It's fairly consistent... that there are six tabs executing 'goto next slide' the first time and five later. If you press Enter until through all the controls on the shadow drive, it performs some Player control, it happens to be on.

    This is the environment in which this happens:
    Captivate 3
    Skin: BMP bars
    Playback bar: Captivate
    See the establishment of borders: disabled
    Publication: SWF only - not HTML - Flash Player 7 (also tried 8 & 9)

    The SWF file plays as an animation on a page of Lectora (Trivantis) generated HTML in a browser window IE 6 fixed - without toolbars, without address bar, without scroll bars, etc..

    Any help to solve this dilemma is greatly appreciated.

    Thanks for your reply. I had discovered this information earlier, but still cannot get the application to work. In the end, it was of part of the solution. Here's what he had to do to things work:

    In Captivate
    -Disable the playback bar
    -Disable the 508 compliance
    In Lectora
    -Add "SeamlessTabbing" as a parameter to the .swf object and set it to "false".

  • Startup message Equium A60 VERIFIER SYSTEM THEN press the F1 KEY

    When I turn on my equium a6o I get

    check the system. then press the f1 key

    When I press f1, I get

    Enter date:... /... /...

    When I enter the date and press enter nothing happens then it shuts off when I press ESC. NE1 got a solution apart from my idea of friends 'it's bin

    Hi Notino,

    It sounds as if your CMOS chip has a problem, maybe the CMOS battery has failed and the BIOS settings are lost.

    I suggest that you only contact your ASP closest to get your phone checked.

    Kind regards

  • Satellite A60 Shuts Down immediately after pressing the Start button / stop

    My A60 stops after 2-3 seconds when I press the power button to open the laptop. After pressing the power button, all the lights on, but until something appears on the screen, the computer cuts the power. Pleasure, DVD and disk hard audio work. At least, the sounds come from these materials. Also from the buttom of laptop, I see that the fan is running.

    This problem started anywhere Yesderday, I closed my laptop properly and carry my laptop to my friends. When I tried to open my laptop, this problem occurred and I could not open yet.

    I tried all combinations of use power supply and battery for power. Non of them works.
    Is there a had the same problem or have any diagonistics for this problem.
    Thank you

    Emrah

    Hello

    Try to connect the laptop to the external monitor to check if pictures or anything else appears on the second monitor?
    You can also try to use the FN + F5 combination to check if the display will change back to the internal display.

    But look, man, if you are not successful then I guess there must be a serious hardware problem and only the laptop technician might know what's wrong.

  • By pressing the ENTER key once instead of twice

    Hello!

    I am developing a Login System. I want the user to choose a user name (from the list), and then enter a password (in a text box with "the password display" enabled). I want the user to be able to press ENTER, optionally with a click on the Login button after entering the password.

    I'm doing it with a Structure to the event read the key Down event and using the node Vcle to record key is pressed. (see image below)

    My problem is that the user must press the Enter key twice to something happened. I want that happens on the first click.

    Anyone has any advice?

    Hey PeterPoPS,

    If you right click on the button enter and go to Properties > Navigation key, you can select the toggle property to bind to the key back from there. You can implement the correct mechanical action so that the button is not fixed in this State, such as lock to exit. You can change the action type mechanical button responds with by right-clicking on the control of entry button and navigate through the menu of mechanical Action . If you later want to use this button within a structure of the event, be careful because the mechanical action of locking must be explicitly read and reset through the event.

    This way you can build an event around the change in value of enter key.

    I hope this helps!

    Kind regards

  • hot key cards hidden even when I press the FN key

    hot key cards usually appear at the top of the screen when I press the FN key.  Now the cards remain hidden when I press the FN key.

    Hot key cards on top of the F1 to F12 key board.
    Thank you

    Try this

    Click on the "Start" button and type the flash word in the search field. In the programs that appear on the top, you should see "restart Flash Cards' and 'Settings for Flash Cards'." First, click on "restart Flash Cards", then click "Start" and type the word flash in the search field. " This time, click "Settings for Flash Cards" and make sure that there is NOT a check mark on "Disable all the function keys", click 'Apply' and 'OK '.

    If the above does not go to the Toshiba Support:
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp

    Choose your model and download and install the 'Toshiba value added Package"for your system, then restart. On the right side of the page are links to forums of Toshiba.

  • play sounds after receive a boost BIS

    Hi, how can I play sound after receive a boost of BIS.

    When you receive the doorbell to your application, start a player:

    http://supportforums.BlackBerry.com/T5/Java-development/audio-and-video-playback/Ta-p/442788

Maybe you are looking for

  • Satellite C850D-11 q keep loses the WIFI signal

    Toshiba Satellite C850D-11 q BT Hub 4 Realtek drivers I lose the wifi signal at least twice a day. Same message to loose / broken cable and reset the wireless card. Realtek has informed me that I have the latest drivers. The present is Realtek RTL 81

  • Fan of satellite L making a humming noise

    Just today my laptop fan was emitting an annoying gurgling noise when the fan is on. I got no problem with that before today.Any ideas what is causing this and what are the solutions? Thank you Dan

  • I get an error number when sending e-mail.

    I get the following error when sending an email. My ISP is century link. It seems that what is happening when I have attached a picture. Your server suddenly put an end to the connection. The possible causes for this include server problems, network

  • 0xc0000034 error code

    After the installation of Windows Service Pack 3 for Vista on my laptop it now won't work. When I turn it on it goes to a black screen with 2 options either start windows normally or launches the Startup Repair tool. If you choose the Startup Repair

  • Both my vista system entered a repeated after the last automatic update reboot

    I had just done file clean with Norton Utilities on both systems, during the restart of automatic updates has downloaded the latest vista updates. Step 2 first load okay but when the phase 3 is to load I get the same message: configuration of updates