Does BGAppRefreshTask get called when your app is foreground or connected to the debugger?

I have yet to see iOS call my background task. I can get it to call it with the debug support (_simulateLaunchForTaskWithIdentifier), but not on its own.

  • Does being foreground suppress the task call?
  • Does being connected to the debugger (but in the background) suppress the call?
  • Does an Xcode-installed app get its background task called?
  • What is the Xcode scheme Run Info option “Launch due to a background fetch event"?

Xcode 15b1 and iOS 17b1.