IOS audio output

hi, i’m trying to control the sound output of my app for my ios example with the buttons? ,in the simulator works but on the device it doesn’t it the only difference i can find its that the device is running ios13.4.1 and de simulator not is there any way to do this ?