-
Shiny 2.4.0.2960 The JobManager will happi;y run an adhoc job on iOS and Android using IJobManager.RunTask If I try and schedule an IJob in Android it works just fine however on iOS it does not seem to Run. The constructor gets called and I have an ILogger.LogDebug statement in there and that appears in AppCenter. None of the logging or notifcations get fired in the Run method.
The info.plist has the necessary UIBackgroundModes and BGTaskSchedulerPermittedIdentifiers
I schedule the job like this,
As well as some Push Notifications methods mapped in AppDelegate I also have
Is there anything else I might be missing on iOS |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
So there's a couple of catches to iOS - the first is that "scheduled" is a bad term to use. Periodic is the correct term to use. iOS determines how often your user actually uses your app and then decides when things can/should run. If you are using a mac, try running in the iOS simulator. Once you are debugging in the simulator, go to visual studio for mac, under debug -> simulator iOS background fetch. If they run here, all I can tell you is that iOS will run this but not with any sort of guarantees for time. A couple of other notes here:
|
Beta Was this translation helpful? Give feedback.
So there's a couple of catches to iOS - the first is that "scheduled" is a bad term to use. Periodic is the correct term to use. iOS determines how often your user actually uses your app and then decides when things can/should run.
If you are using a mac, try running in the iOS simulator. Once you are debugging in the simulator, go to visual studio for mac, under debug -> simulator iOS background fetch. If they run here, all I can tell you is that iOS will run this but not with any sort of guarantees for time.
A couple of other notes here: