0

I'm working on a Unity app that targets Android as platform. It's necessary that this app continues to run even when it does not have the focus in Android. My research so far brought me these possibilities:

  • Export the project as an Android gradle project and manimpulate the app's lifecycle in the UnityPlayerActivity, as described here
  • Use a (native Android) service, as often described, e.g. here

So far I have not succeeded in getting to run any of the options, so:
Is there any 'native' Unity way to achieve that the app runs in background? And are there conditions that my Unity app has to satisfy for this?

Benjamin Zach
  • 1,452
  • 2
  • 18
  • 38
  • https://docs.unity3d.com/ScriptReference/Application-runInBackground.html I found this , possible android and IOS can't do that – TimChang Sep 10 '19 at 08:17
  • https://forum.unity.com/threads/application-runinbackground-is-not-working-on-android.117723/ Does not work indeed – Benjamin Zach Sep 10 '19 at 08:18

0 Answers0