Post

Replies

Boosts

Views

Activity

Reply to Can Widget send a network request when phone is locked?
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
Topic: App & System Services SubTopic: General Tags:
Jan ’22