Skip to content

Background staysActiveInBackground argument for Audio.setAudioModeAsync(mode)  #62

@fbotalla

Description

@fbotalla

The playlist does not keep playing in the background even after changing the Audio Mode.

Audio.setAudioModeAsync({
      allowsRecordingIOS: false,
      staysActiveInBackground: true, <--- Changed this
      playsInSilentModeIOS: true,
      shouldDuckAndroid: true,
      interruptionModeAndroid: InterruptionModeAndroid.DoNotMix,
      playThroughEarpieceAndroid: false
    });

I cloned the project, changed that value and that's all I did.

Is there anything extra that needs to be done in this example to have it work in the background?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions