How can I disable bluetooth earphones from automatic playing audio as soon as they are connected?

Viewed 67

I'm building an audio application for iOS in Swift.

Every time I connect my bluetooth earphones, it automatically starts playing music from my Music (iTunes) app. I'm on iOS 14.4.

Is it possible to disable this behavior programatically? Or this behavior is preempted from my specific bluetooth earphones?

Is it related to AVAudioSession.RouteSharingPolicy?

0 Answers
Related