Got the issue sorted
If someone else comes across it, your phones silent switch maybe on.
had to configure using AVFoundation the audio session
func configureAudioSession() {
do {
try AVAudioSession.sharedInstance().setCategory(.playback)
try AVAudioSession.sharedInstance().setActive(true)
} catch {
print("Failed: \(error.localizedDescription)")
}
}
Topic:
App & System Services
SubTopic:
Core OS
Tags: