I am creating an application using xcode 7.1, swift. I want to play an audio. Everything is fine. Now my problem I want to hear sound when the device in silent mode or muted
Swift 4.2
do { try AVAudioSession.sharedInstance().setCategory(.playback, mode: .default, options: []) } catch let error { print("Error in AVAudio Session\(error.localizedDescription)") }