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. Dismiss Notice

Android completely MUTE after unity ads is show

Discussion in 'Unity Ads & User Acquisition' started by nam-duong-887, Apr 16, 2016.

  1. LostShepherd

    LostShepherd

    Joined:
    May 31, 2019
    Posts:
    36
    Yes I ended up having to crack a walnut with a sledgehammer I'm afraid and run this code after each ad to prevent the issue ~

    AudioSettings.Reset(AudioSettings.GetConfiguration());
     
  2. cihadturhan_unity

    cihadturhan_unity

    Joined:
    Apr 19, 2021
    Posts:
    47
    Did it work?
     
  3. LostShepherd

    LostShepherd

    Joined:
    May 31, 2019
    Posts:
    36
    Yes it works, in my BBalanced android game you can see the effect though as it causes a slight delay after each ad plays. For most of the devices I tested on there was no sound issue at all but I had to include this fix for the random edge case device e.g. my Samsung Tab.
     
  4. cihadturhan_unity

    cihadturhan_unity

    Joined:
    Apr 19, 2021
    Posts:
    47
    Thank you very much for the response. For now, I don't have any complains but when I do, I guess I'll try this solution.
     
    LostShepherd likes this.