I am trying to start playing a sound from a background task via an AVAudioPlayer that is instantiated then, so here\'s what I\'ve got.
For readability I cut out all user
include your playSoundFile call in the below, this should always run it in main thread
playSoundFile
dispatch_async(dispatch_get_main_queue(), ^{ });
add this if to your - (void) playSoundFile to check if player is created, if not, then create it
- (void) playSoundFile
if(!_player) { _player = [[AVQueuePlayer alloc] init]; }