I'm specifically focused on Live Activity, but I think this is somewhat a general question. The app could get a few callbacks when:
- There's a new payload (start, update, end)
- There's a new token (start, update)
- There's some other lifecycle event (stale, dismissed)
-
Assuming that the user didn't force kill the app, would the app get launched in all these scenarios?
-
When OS launches the app for a reason, should we wrap our tasks with
beginBackgroundTaskor that's unnecessary if we're expecting our tasks to finish within 30 seconds? Or the OS may sometimes be under stress and give you far less time (example 3 seconds) and if you're in slow internet, then addingbeginBackgroundTaskmay actually come in handy?