I have a very simple script that take data from a json web api and saves it to device storage every 60 seconds. Problem I run into is that if the app is not presently open on the screen then it pauses. Apparently unity doesn’t have a built in feature for run in background on Android. Does anyone know of a method to keep an app open in the background? I only need that single C# script to run in the background but if the entire instance keeps going that’s OK too.
Note: this app will never be published or public in any way so if it needs to be system specific that’s ok. I use galaxy S20 FE.
I can’t guarantee that this is exactly what you’re looking for, but this may be a good place to start.
As a general rule, you can only rely on a Service to run in the background on Android, so that should also be a usable term to search around for.
If you find something that works, let us know! The more information we have here, the better.