Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

[Android] Make Stopping foreground service optional when app losses audio focus #404

Open
3 of 4 tasks
amrfarid140 opened this issue May 12, 2022 · 0 comments
Open
3 of 4 tasks

Comments

@amrfarid140
Copy link

Description

As it stands, if you set MusicControl.handleAudioInterruptions(true); this means the android app is listening on audio focus changes.

When the app losses focus, the listener calls emitter.onStop which ends up stopping the foreground service.

However, not all apps want that. For example, you might want to pause the audio instead of killing the playback altogether.

I am happy to submit a PR for this just opening the issue to take opinions on

  1. Will this change be accepted?
  2. How it should look like?
  1. Platform ?

    • iOS
    • Android
  1. Device
  • Simulator
  • Real device
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant