Can Widget send a network request when phone is locked?

Hello,
I am working with widgetKit to make widget
and I want to make a network request once a hour.
So I make it in Timeline Provider, but it seems not working when the device is locked.

Is it possible to send a network request when device is locked?
The next network call will occur when the device is unlocked. This is by design.

I'm answering this way late, but what about a BackgroundTask? These will definitely run even if the device is locked and turned off, as long as the app is running. The only bad thing is you don't get to choose when it runs; the device decides when to run. However, they seem to run pretty quickly after locking the device, from my experience, and you can have the task schedule another task when it's done, so they can keep being scheduled repeatedly.

https://developer.apple.com/documentation/backgroundtasks

Can Widget send a network request when phone is locked?
 
 
Q