... that caused audio to start working on a real device. Didn't have any effect on the simulators though. Not sure why I didn't need that AVAudioSession code on my work Mac either.
Post
Replies
Boosts
Views
Activity
I added
do {
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playback)
} catch {
print("could not set session. err:\(error.localizedDescription)")
}
do {
try AVAudioSession.sharedInstance().setActive(true)
} catch {
print("could not active session. err:\(error.localizedDescription)")
}
to the main UIViewController