Headset media buttons don't work with Android apps

REPRODUCIBILITY (% or how often): Always
BUILD ID: 3.4.0.22
HARDWARE (Jolla1, Tablet, XA2,…): XA2
UI LANGUAGE: English
REGRESSION: (compared to previous public release: Yes, No, ?):

DESCRIPTION:

(Continuation of https://together.jolla.com/question/208290/headset-media-buttons-dont-work-with-android-apps/)
My headphones have media buttons (play/pause, volume up, volume down), and they work great with the standard SFOS media player app.

However, I want to use them with Android apps such as Spotify, but they don’t seem to work.

  • Play/pause button: Does not work at all, including double-press to skip current song and triple-press to rewind. Everything works fine with SFOS media player.
  • Volume up & volume down: Only works when device is “awake” (I have to press the power button to turn on the screen); when playing from the SFOS media player I can also change volume when the device is locked (screen completely off), which is very comfortable. I can’t do that when playing media from an Android app, instead I always have to “wake up” the device.

This is the same with the phone’s own volume buttons: They always work when I’m using the SFOS media player, but if I’m playing from Android media apps I always have to “wake up” the device.

I’m not sure where the problem lies; the MPRIS interface to Spotify works without problems (I can see and use the media buttons on the lockscreen), and the headphone buttons work with the Media Player app.

I’ve experienced this problem since the start of Android support for XA2, and it’s still present with the latest versions:

UPDATE: This issue is still present in 3.1.0.11, exactly as described above.

UPDATE 18.11.2019: This issue is still present 3.2.0.12, still exactly as described above.

UPDATE 03.02.2020: Issue still present in 3.2.1.10.

UPDATE 17.04.2020: Issue still present in 3.3.0.14.

UPDATE 01.10.2020: Issue still present in 3.4.0.22.

PRECONDITIONS:

Have a headset with media buttons, and an Android music player app such as Spotify.

STEPS TO REPRODUCE:

  1. Launch Spotify app, start playing music
  2. Lock phone
  3. Try using headset media buttons to do anything

EXPECTED RESULT:

Volume should change, play/pause should work, next/previous track (using double and triple press on play/pause button) should work.

ACTUAL RESULT:

Nothing happens. When pressing the lock button to “wake up” the phone, it is possible to at least change volume, but none of the other actions work.

Is this a sailfish or alien dalvik bug?

From discussions back on TJC it seems like a Sailfish bug. The buttons on the lockscreen work fine, so the MPRIS interface to aliendalvik media players works as it should.

@pilino Do you have time to attend the next community meeting? Community meeting on IRC 12th Nov 2020

edit: I’ll try to join the meeting and discuss it with jolla

The answer of Jolla from the last meeting: “we haven’t had an opportunity to prepare an answer for you yet unfortunately, would need to move to next meeting, apologies!”

There is a workaround till we see a fix for that problem: https://together.jolla.com/question/174156/bug-bluetooth-media-control-with-android-apps-and-native-apps/?answer=190869#post-id-190869

You can find the whole discussion in the meeting log - https://irclogs.sailfishos.org/logs/%23sailfishos-meeting/%23sailfishos-meeting.2020-11-12.log.html

1 Like