include
Skip to main content
Hi



(Tested on Androids O and P, Deezer 5.4.23.14 and .7)



Deezer app does not receive Android default music controls correctly (does not start playback) if it's not already running



The expected behavior: start Deezer activity and start music playback in the background once Music playback button (either play button on headset or play button on music control widgets, or simply ask Google assistant to play some music) is pressed



Current behavior: nothing happens if Deezer app is not running in the background. It works correctly only if the app process is already running in the background.



Best
Hi @Siavash Rahnama,



I hope I'm not misunderstanding what you're saying, but that's the normal behavior, this isn't a bug.



How the system could possibly know that by triggering media controls it has to start playing on Deezer and not another app ? (Except Google Assistant)



For the case with Google assistant you can define a default music app and when you'll ask to "Play music" it'll launch Deezer.
@Mehdi jaan



As far as I know, Android has such a feature as "default media button registration", which multimedia apps register themselves as default (doesn't need user confirmation) on the operating system. The registration remains intact as long as another multimedia app doesn't "steal" it by registering itself instead of previous app..



So, a music app (in this case Deezer) registers itself every single time it's run. Doing so, until user hasn't used another music app (like play music, of spotify), android recognizes the "media playback" app to be Deezer. This helps the operating system to decide what app it should refer to (the last multimedia app used by user obviously) when for example car Bluetooth or a headset is connected.



In this case, android sends an Intent to Deezer (even if the app is closed), which should technically launch Deezer and should be handled by it to start playback.



Please refer to: https://developer.android.com/guide/topics/media-apps/mediabuttons

section "Using media buttons to restart an inactive media session"



Cheers
Hello @Siavash Rahnama,



Indeed you're right on this topic, thanks for all the information you provided.

We've created an issue we'll treat it as fast as possible.



Here the issue code COREDROID-2081, with that you'll know in which version it's patched through release notes.

Hey @Mehdi

I’ve been working around this “issue” with Tasker and some scripts over the last two years. Works more or less good.

Have you any news when this will be resolved?

 

Thanks.

Jas


This would be such a great feature!


Reply