Disappearing Wi-fi bar in Xamarin iOS app

We have requirement in our project that we need to activate or deactivate audio in some of the screens and whenever we deactivate audio, we are facing problem like iPhone status bar is refreshing and some time icons in status bar like WIFI, battery and signal icons are disappearing and appearing after sometime or when we navigate through different screens in the app.

Note: We have enabled one of the background mode setting called “Audio, AirPlay and Picture in Picture” in Info.plist. If we disabled above setting called “Audio, AirPlay and Picture in Picture” in Info.plist, we are not getting above problem like refreshing of status bar and disappearing of WIFI and other icons.

Can any one please help us to resolve above issue without disabling the “Audio, AirPlay and Picture in Picture” in Info.plist

I have tried below code to deactivate audio using AVAudioSession in Xamarin.IOs but didn't work

var session = AVAudioSession.SharedInstance(); session.SetCategory(AVAudioSessionCategory.Playback); session.SetActive(false);

Disappearing Wi-fi bar in Xamarin iOS app
 
 
Q