Sorry I don't remember the specifics b/c I never implemented it. Have a look at ActivityKit or how to schedule background tasks. Good luck.
Post
Replies
Boosts
Views
Activity
Yea I think you can schedule them to be played, and I think that's how those apps work. But from what I could tell the timing is very imprecise with that approach, which didn't work for my use case.
Live Activities with ActivityKit was another approach I tried, but also didn't work for the same reason.
Hi @Jackson-G
Unfortunately it doesn't seem to be possible.
After researching it seems apps can do periodic background tasks, but they cannot play audio.
"SwiftData doesn’t preserve order of arrays"
I'm also noticing this and am confounded by all the workarounds required to get my nested arrays sorted.
There must be a better way? or future support coming? I hope.