Play music in the background

Play music in the background

pencilking2002pencilking2002 Member Posts: 2
Hello. This is not quite related to the Unity SDK but it may be something people here have come across. When you build your app to an Android or iOS device, the audio stops playing when the device goes to sleep. Is there a way to play audio as a background process in Unity so that the app won't go silent when the device goes to sleep?

Answers

  • Filip@Bose[email protected] Member Posts: 43
    In Unity by default the application stops when in the background, but I've seen some native fixes online that people hacked around with in Android Studio and Xcode respectively that can force the application to run in the background.
    Hope this helps,
    Cheers!
  • pencilking2002pencilking2002 Member Posts: 2
    I was afraid you'd say that ;D
    Thanks for clarifying.
Sign In or Register to comment.