Task Invoker - Run C# code while your mobile app is in the background.FeaturesRuns C# code while the app is in the backgroundInvokes a C# callback on a configurable intervalSupports Android and iOSRuns on the Unity main thread so Unity components can be accessed as usualIncludes utilities for wrapping UnityWebRequests with tasks so that they keep running even if the app is sent to the backgroundCompatibilityUnity Editor 2017 or newerAndroid devices supported by Unity 2017 or neweriOS devices supported by Unity 2017 or newerAdditional NotesThese tasks are meant for light background work, not for running the whole game in the background.Tasks will not run indefinitely: the tasks will stop running if the app is killed by the user or the OS. Please view the technical details below for more info.LinksDocumentationFrequently Asked QuestionsiOS detailsThe iOS plugin uses beginBackgroundTaskWithExpirationHandler to run the background tasks. Because of this the tasks will expire usually after around a half minute of background run time. The Expired event in TaskInvoker class can be used to handle expired tasks.Android detailsOn older Android versions the tasks run as long as the app is not killed by the user. But newer versions like Android 14 have more strict battery usage settings. By default apps are in balanced mode that limits the background time to around 10 minutes. The time may vary based on the device and usage.