Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Audio How to disable Audio Focus on Android?

Discussion in '5.4 Beta' started by daspiela, Jun 9, 2016.

  1. daspiela

    daspiela

    Joined:
    Mar 5, 2015
    Posts:
    15
    Is it possible to deactivate audio focus on startup?
    Since Unity 5.4, the background music stops on startup and i couldn't find a way to deactivate audio focus.
     
    MrEsquire likes this.
  2. BRiSA

    BRiSA

    Joined:
    Mar 16, 2015
    Posts:
    4
    I would love to know the answer. My players are complaining!
     
  3. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    It's currently not possible but it sounds like a reasonable feature for games that doesn't have background music. Would a player setting in the editor suffice or would you need a runtime API where you could toggle this on and off?
     
  4. daspiela

    daspiela

    Joined:
    Mar 5, 2015
    Posts:
    15
    Player setting would be perfect for my apps. This sounds like the best way to prevent native music players being paused on startup.
     
  5. robson_depaula

    robson_depaula

    Joined:
    Sep 30, 2014
    Posts:
    37
    I would vote up to this request. Disabling audio focus internal control would be great for my app as well.
     
  6. BRiSA

    BRiSA

    Joined:
    Mar 16, 2015
    Posts:
    4
    I would love to see this setting. My players are complaining and I hate to reply there is nothing I can do.
     
  7. paradizIsCool

    paradizIsCool

    Joined:
    Jul 10, 2014
    Posts:
    176
    Hi, we also have users complaining about the loss of the audio focus, especially since 5.3.6 which always get audio focus and we don't want to, especially since this fix
    • (796242) - Android: Audio - Fixed an issue where the application would not regain audio focus after a notification.