Hi guys,
I create a music player app for android devices, I would like my app to continue to play music when the user goes to a lock screen. Is there any way to do this in Unity?
I solved my problem:
1)you must export your project into android studio.
2)in AndroidStudio, find UnityPlayerActivity.JAVA in src folder, and delete this line: mUnityPlayer.pause();
3)create your apk in android studio. it’s all of you want.
hope this help you if you have same problem.