I’m building a standalone Apple Watch metronome app for running.
My goal is for these 3 apps to work at the same time:
- Runna owns the workout session
- Spotify plays music
- my app plays a metronome click in the background
So far this is what I've found:
- Using HKWorkoutSession in my metronome app works well with Spotify, but conflicts with Runna and other workout apps, so I removed that.
- Using watchOS background audio with longFormAudio allows my app run in the background, and it can coexist with Runna. However, it seems to conflict with Spotify playback, and one app tends to stop the other.
Is there any supported watchOS audio/background configuration that allows all 3 at once?
More specifically this is what I need:
- another app owns HKWorkoutSession
- Spotify keeps playing
- my app keeps generating metronome clicks in the background
Or is this simply not supported by current watchOS session/background rules?
My metronome uses AVAudioEngine / AVAudioPlayerNode with generated click audio.
Thank you!