Hi! Has anyone succeeded using BGTaskScheduler via...
# ios
e
Hi! Has anyone succeeded using BGTaskScheduler via expect/actual class? It seems that job gets scheduled, bet is never executed.
j
have you
BGTaskSchedulerPermittedIdentifiers
entry in your
info.plist
?
e
Yes
j
I've seen here as well that it can be a while after scheduled time before it gets executed
r
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.