Combine not working in background tasks on watchOS 26

I have several combine pipelines in my watch and iPhone app. While background tasks on the iPhone work correctly (the combine pipelines all activate), on the watch the pipelines do not get activated. I have an internal log reporting that data is being fed to the sources but is not propagating to the sinks.

Thoughts?

Which "BackgroundTask" type are you using? The SwiftUI BackgroundTask API actually works by aggregating the behavior of a number of unrelated APIs, only some of which are public or fully supported on watchOS. That makes it very difficult to talk about it in a "generic" way.

*It doesn't help that we've used the term "background task" for two OTHER APIs (UIApplication.beginBackgroundTask() and the BackgroundTask framework), both of which are significantly older than the SwiftUI API.

__
Kevin Elliott
DTS Engineer, CoreOS/Hardware

Combine not working in background tasks on watchOS 26
 
 
Q