"Unlike other BGTask subclasses, BGContinuedProcessingTask starts in the foreground. In addition, your app needs to run the task only in response to someone’s action, such as tapping a button. If a person backgrounds the app before the task completes, a continuous background task can still perform operations"
Example use case: our app allows users to upload photos. Right now those uploads fail if the user immediately backgrounds the app -- the 5 sec termination window is not long enough for the upload to finish. If there was a way to hook into BGContinuedProcessingTask, then we could kick off the upload as a task from the foreground and ensure it keeps running even after the app is backgrounded.
If there's another way to achieve, would appreciate pointers.
expo-background-task
doesn't seem to quite do it because "the task may not run immediately after it is scheduled."