Hi! Has anyone succeeded using BGTaskScheduler via expect/actual class? It seems that job gets scheduled, bet is never executed.
j
John O'Reilly
10/30/2024, 9:39 AM
have you
BGTaskSchedulerPermittedIdentifiers
entry in your
info.plist
?
e
Edgars Malahovskis
10/30/2024, 9:39 AM
Yes
j
John O'Reilly
10/30/2024, 9:40 AM
I've seen here as well that it can be a while after scheduled time before it gets executed
r
rocketraman
11/04/2024, 4:37 PM
iOS seems to be very stingy about running background jobs when the app is explicitly closed (and Apple doesn't provide much documentation on when jobs are executed -- it partially appears to depend on the user's history of interacting with the application).
However, I've seen my jobs get executed as soon as the app is explicitly opened by the user.