Saturday, October 14, 2023
HomeiOS Developmentswift - iOS, Audiokit: Reclaim audio after App is in background

swift – iOS, Audiokit: Reclaim audio after App is in background


I’m engaged on an App (a metronome), which is enjoying audio in background. I’m utilizing AudioKit. It’s working wonderful thus far however:
Audio is misplaced after I return from background after utilizing different Apps or after the machine wasn’t used for a time.
Audio is simply lifeless and I couldn’t handle to restart it once more.
Is there one thing I ought to do in App lifecycle callbacks?

My suspicion is, that in case audio is utilized by an different app (to illustrate Apple Music or Audible) my App cannot reclaim this audio channel once more. Or do I’ve to do a particular trick? There’s not a lot of documentation I can discover about this concern.

Xcode is 14.2, iOS 16.2, AudioKit 5.5.8

Thanks on your assist.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments