Unity3D - Audio playing getting muted after getting any call/notification on Android
<p>I have audio playing issue on Android build. I'm using Unity 5.4.0b15, but I had same issue on 5.3.4p3.</p>

<p>I have simple component for playing background music added to "AudioPlayer" GameObject in my scene.</p>

<pre><code>public AudioClip clip;
private AudioSource _musicAudioSource;

private void Awake()
{
   if (_musicAudioSource == null)
   {
       _musicAudioSource = gameObject.AddComponent&lt;AudioSource&gt;();
   }
   _musicAudioSource.loop = true;
   _musicAudioSource.clip = clip;
   _musicAudioSource.Play();
}
</code></pre>

<p>After running game on Android devices the music starts playing perfectly. But while it running I'm getting any kind of notification or call (phone, viber or any other massinger) the music stops playing. Also all the other sounds playing getting muted, which I used in gameplay. The only way to restart playing audio is to kill application and run it again.</p>

<p>Also getting same muted issue, when I'm running game while listening any audio using native player, like Play Music.</p>

<p>On iOS everything works perfectly. </p>