Background ios app responds slowly to MPNowPlayingInfoCenter

I created a music application connected to MPNowPlayingInfoCenter. I have many methods that do different things (further, pause, etc.). However, when I click the next button in MPNowPlayingInfoCenter, the application responds immediately and immediately calls the method when the application is active. However, when the application plays the background, and I click next to MPNowPlayingInfoCenter, it responds, but after a few seconds.

Has anyone else experienced this or even realized that there might be a culprit here?

+6
source share
1 answer

You should not use the graphic code from the background - iOS will kill your application if you do it too much, since it will remove the resources available for applications in the foreground. It will also damage your other background routines.

+3
source

All Articles