Search Unity

Bug How to make Game BGM mute in iOS silent mode when vivox is active

Discussion in 'Vivox (Voice & Text Chat)' started by michaeljack, Apr 27, 2023.

  1. michaeljack

    michaeljack

    Joined:
    Apr 19, 2018
    Posts:
    2
    Hi, I’m working on multiplayer mobile game but i have a problem in iOS device when silent switch set to silent mode. The problem is BGM not muted when iOS silent switch set to silent mode. Beside that when silent switch set into not silent mode will BGM not mute.


    My goal is to fix BGM become muted when in silent mode iOS.
    I’m really appreciate it if someone can help me with this problem.

    version : 5.14 Vivox version
     
  2. dylan_unity3d

    dylan_unity3d

    Unity Technologies

    Joined:
    Nov 12, 2019
    Posts:
    78
  3. michaeljack

    michaeljack

    Joined:
    Apr 19, 2018
    Posts:
    2
    upload_2023-5-2_8-40-54.png
    Thanks to reply me.
    after build done, Open the workspace I found required background modes but didn't find audio run in background on my workspace. I guess i should change the AudioSession category must be set to AVAudioSessionCategoryPlayAndRecord before initialize vivox ? is there any guide to set into AVAudioSessionCategoryPlayAndRecord ?