BGContinuedProcessingTask what's the point?

Hi,

This post is coming from frustration of working on using BGContinuedProcessingTask for almost 2 weeks, trying to get it to actually complete in the background after the app is backgrounded.

My process will randomlly finish and not finish and have no idea why.

I'm properly using and setting

task?.progress.totalUnitCount = [some number] task?.progress.completedUnitCount = [increment as processed]

I know this, because it all looks propler as long as the app insn't backgrounded. So it's not a progress issue. The task will ALWAYS complete.

The device has full power, as it is plugged in as I run from within Xcode. So, it's not a power issue.

Yes, the process will take a few minutes, but I thought that is BGContinuedProcessingTask purpose in iOS 26. For long running process that a user could place in the background and leave the app, assuming the process would actually finish.

Why bother introducing a feature that only works with short tasks that don't actually need long running time in the first place.

My process will randomlly finish and not finish and have no idea why.

What do you mean by "not finish"? Is it expiring or is something else happening?

I know this, because it all looks propler as long as the app isn't backgrounded. So it's not a progress issue. The task will ALWAYS complete.

What actually happens when you enter the background? Also are you locking the device or switching over to other apps? I'm double checking, but I think we may expire tasks on device lock.

__
Kevin Elliott
DTS Engineer, CoreOS/Hardware

What do you mean by "not finish"? Is it expiring or is something else happening?

It is expiring and calling the expirationHandler.

What actually happens when you enter the background? Also are you locking the device or switching over to other apps? I'm double checking, but I think we may expire tasks on device lock.

I'm just sitting in the Springboard watching the progress indicator move forward. It looks to be moving slowly because 5000 items are being processed, but there is constant movement. The device is not being locked, nor am I opening another app. I haven't gotten that far yet.

Thoughts?

BGContinuedProcessingTask what's the point?
 
 
Q