-
I have code in the startup to use jobs and trigger a foreground job. My understanding of foreground jobs is that it creates a timer to hit the job while the app is open. I've debug deployed to a physical device, but it doesn't trigger the job on app load. It looks like it'll trigger sporadically in the background on iOS schedule rather than a foreground process. Do foreground jobs run with a timer for iOS, or do they hook into the iOS's background job scheduling? Currently using Shiny / Shiny.Core / Shiny.Jobs 2.5.4 `services.UseJobs(); services.RegisterJob(new JobInfo(typeof(SyncJob), "Job", true) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It won't trigger the job on app start. It triggers it according to a timer set. The application has to remain in the foreground for X seconds (default 30 seconds) before a foreground job will be triggered. You can find the logic here: https://github.com/shinyorg/shiny/blob/v2.5.0/src/Shiny.Jobs/Infrastructure/JobLifecycleTask.cs |
Beta Was this translation helpful? Give feedback.
It won't trigger the job on app start. It triggers it according to a timer set. The application has to remain in the foreground for X seconds (default 30 seconds) before a foreground job will be triggered. You can find the logic here:
https://github.com/shinyorg/shiny/blob/v2.5.0/src/Shiny.Jobs/Infrastructure/JobLifecycleTask.cs