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?