Created
September 19, 2018 16:26
-
-
Save paulocoutinhox/79a9052623b1815e8d08bef3e59ea7df to your computer and use it in GitHub Desktop.
Workaround to enable audio session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)activateAudioSession | |
{ | |
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil]; | |
[[AVAudioSession sharedInstance] setActive:YES error:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment