I know that BGAppRefreshTask will not be triggered in background when user has forced killed the app.
But if user only presses the home button or swipes up the screen to make the app info background, and after a while the app was terminated in the background for OOM, will BGAppRefreshTask still be triggered in this case?
I know that
BGAppRefreshTask
will not be triggered in background when user has forced killed the app.
Correct.
will
BGAppRefreshTask
still be triggered in this case?
Yes.
When the user moves away from your app, it will be suspended in the background. If they stay away for long enough, it’ll be terminated. None of this prevents the app from running in the background again. If the system decides to honour your app refresh request, it’ll resume (or relaunch) the app in the background.
IMPORTANT That’s a big “if” btw. The system will generally only honour app refresh requests for apps that the user uses regularly.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"