uamp icon indicating copy to clipboard operation
uamp copied to clipboard

UAMP play from search not working on Android Auto (DHU): "Sorry, something went wrong. Try opening the app to continue"

Open beamb opened this issue 3 years ago • 3 comments

Phone: OnePlus 6 Android Version: 11 Android Auto Version: 7.1.614574-release

Steps to recreate:

  • Install and run Android Auto Desktop Head Unit emulator as per documentation (version 2.0 rc2).
  • Compile and install UAMP (last commit: 65a27cde558d6a48ec6555396df72fe1039c4e6e).
  • Open UAMP on the DHU.
  • Hit the Assistant button and ask "Play [track]".
  • Observe how the the Assistant responds: "Ok, asking UAMP to play [track]", followed almost instantly by "Sorry, something went wrong. Try opening the app to continue".

What I did observe is that all voice commands in the table below work - with the only exception of phrases triggering the onPlayFromSearch() callback. Any ideas why?

image

EDIT: My issue is similar to #381 - however the fix from #405 is included in the version of the UAMP app I have installed and the problem persists. Could it be that things changed on the internal side, breaking the play from search functionality in the app?

beamb avatar Jan 26 '22 15:01 beamb

I'm having the same issue as described.

Phone: Galaxy A70 Android Version: 11 Android Auto Version: 7.4.620934-release

gustavopeq avatar Mar 30 '22 15:03 gustavopeq

Any news on this ?

tobyworks avatar Oct 04 '22 13:10 tobyworks

For anyone having this issue, for me it working to have this as the Intent filter on a fake activity that only extends AppCompatActivity.

/**
 * Due to some weird Google reasons we need to provide an activity to which we add the
 * MEDIA_PLAY_FROM_SEARCH intent filter. This can be any activity and actually doesn't do anything
 */
class PlayFromSearchActivity : AppCompatActivity()
    <activity android:name=".PlayFromSearchActivity"
        android:exported="true">
        <intent-filter>
            <action
                android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
            <category
                android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>

tobyworks avatar Oct 04 '22 14:10 tobyworks