how to make sure android game runs in background unity code example
Example: how to allow unity to continue in background
void Awake () {
if (Application.isEditor)
Application.runInBackground = true;
}
void Awake () {
if (Application.isEditor)
Application.runInBackground = true;
}