1. Hello!

    First of all, welcome to MapleLegends! You are currently viewing the forums as a guest, so you can only view the first post of every topic. We highly recommend registering so you can be part of our community.

    By registering to our forums you can introduce yourself and make your first friends, talk in the shoutbox, contribute, and much more!

    This process only takes a few minutes and you can always decide to lurk even after!

    - MapleLegends Administration-
  2. Experiencing disconnecting after inserting your login info? Make sure you are on the latest MapleLegends version. The current latest version is found by clicking here.
    Dismiss Notice

How do I get the audio running in background (iOS)?

Discussion in 'Programming' started by namarang, Sep 13, 2021.

  1. namarang
    Offline

    namarang Blue Snail

    2
    0
    2
    Sep 13, 2021
    Female
    3:43 PM
    Beginner
    1
    My app needs to have the audio run in the background mode

    In Unity, I set:
    Player Settings... --> "Behavior in Background"
    to be "Custom" and also added the line:
    Application.runInBackground = true;
    in the C# initialization script.

    The audio is still stopping when either
    screen dims OR
    lock button is pressed.

    I get this in Xcode too:
    -> applicationWillResignActive()
    -> applicationDidEnterBackground()

    Please help.
     

Share This Page