Post

Replies

Boosts

Views

Activity

Reply to Background processing question
Thank you so much for your reply! I tested the beginBackgroundTask in my app now, and it works just as you say, it gives the app about 30 seconds of running time after the app enters background. That of course helps, although it is unfortunately not enough to finish the task of adding that number of songs to a playlist. I guess I just have to look into switching to using the Apple Music API instead of MusicKit, which from what I have understood accepts batch loads of songs to a playlist instead of one by one, which should make it a lot quicker and able to finish at least within those 30 seconds given by using beginBackgroundTask.
Apr ’25