getTimeline being called even when the phone is locked

I added some logging to my widget and in console.app I can see that the widget getTimeline method is being called even when the users phone is locked. It's been over an hour with my phone locked and the widgets getTimeline method is still being called when the timeline expires.

I want the widget to refresh as little as possible when not visible because every call to our API costs money, I don't want widgets just sitting there hitting our server even if someone isn't looking at it.

Is there any way to disable this functionality and reduce the number of getTimeline calls when the widget is not visible or the phone is locked?

NOTE: I'm not running the app via xcode just incase that triggers some more frequent update path.


getTimeline being called even when the phone is locked
 
 
Q