Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Sound was muted forever after minimize app while watching Admob interstitial ad

Discussion in 'iOS and tvOS' started by phuongnh, Apr 14, 2020.

  1. phuongnh

    phuongnh

    Joined:
    Sep 23, 2019
    Posts:
    22
    Hello,

    I have a problem with unity sound on iOS.
    When my game starting playing an AdMob interstitial ad, I minimize it then re-open again. This will cause the interstitial ad closed automatically, but will also make my game muted forever. No sound playing then.
    If I minimize the game again, and re-open it, the sound system is back (with the strange behavior that all muted sounds before will be playing at the same time).

    Although this is random, but it's quite easy to reproduce.
    I see this problem on my 2 games. I'm using Unity 2018.4.16f1.

    Could you please help?
    Thank you.
     
  2. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    516
    Have you submitted a bug report to Unity? Just posting on the forum rarely gets attention.
     
  3. SonerAltincit

    SonerAltincit

    Joined:
    May 21, 2014
    Posts:
    6
    Same problem i have and couldnt find solution.
     
  4. superrokk2

    superrokk2

    Joined:
    Aug 22, 2020
    Posts:
    1

    void OnApplicationPause(bool pauseStatus)
    {
    MobileAds.SetApplicationVolume(pauseStatus? 0f : 0.5f);
    }
     
  5. Script3Dev

    Script3Dev

    Joined:
    Mar 6, 2023
    Posts:
    1
    que se debe de hacer