iOS Widget Network Connection

I’m developing a new widget with network connection that will make one connection per minute. However, I saw many tutorials that handle networks-related tasks inside the WidgetProvider, while others perform these tasks periodically in the background of the app. Which option is the most recommended? Is there a right one?

iOS Widget Network Connection
 
 
Q