Hello everyone! we have a problem… our company has developed an application where people can listen to the songs. Now we are faced with the following problem: we can’t understand how to make that application work in background mode
Are you looking for this? Unity - Scripting API: Application.runInBackground
You can set it in the editor too: Edit\Project Settings\Player\Resolution and Presentation\Run in Background.
It’s worth noting that you should also use this setting for networked games. A server stops listening when the app loses focus if it isn’t set to run in the background.