Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Auto Support #623

Open
1 task done
TrueMB opened this issue Aug 10, 2023 · 37 comments
Open
1 task done

Android Auto Support #623

TrueMB opened this issue Aug 10, 2023 · 37 comments
Labels
enhancement New feature or request

Comments

@TrueMB
Copy link

TrueMB commented Aug 10, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Pain

I really would like to use the App, but since I have a bigger distance to my work, it needs to work with AA.

Suggested solution

Adding support with Android Auto (at least with developer options on)

Useful resources

https://medium.com/@rusoni09/android-auto-integration-in-flutter-91de1e33c6f8

Additional information

I saw already this post:
#60

Is it still not supported? Even with the developer options on? Is there maybe another way?

@TrueMB TrueMB added the enhancement New feature or request label Aug 10, 2023
@KRTirtho
Copy link
Owner

KRTirtho commented Aug 13, 2023

With the help of @TrueMB & @GitHub0901 a basic level of Android Auto support has been added 🚀

There's no UI in the Android Auto app because Android Auto doesn't support 3rd party renderers like Flutter
But basic media playback works (play/pause, skip to next/previous, track progress etc controls)

Thus user has to select their playlists/tracks & manage the queue (removing/adding, repositioning etc) from the mobile app for now 😓

@KRTirtho
Copy link
Owner

Just as a proof (don't judge my music taste :p)

image

Unfortunately no UI for now 😢
image

@KRTirtho
Copy link
Owner

It's available in the nightly release https://spotube.krtirtho.dev/other-downloads/nightly-downloads

@TrueMB
Copy link
Author

TrueMB commented Aug 13, 2023

This is awesome and exactly what I needed. Thank you so much!

Would be nice for the future to have the possibility to change between Playlists, but this is not a must-have for me. I can create a car playlist or chose one before starting to drive.

Thank you so much!

@TrueMB
Copy link
Author

TrueMB commented Aug 15, 2023

Beforehand: I only used AA + Spotube 2 times yet. I will do a longer test at home tonight and maybe send a video as well.

What I see so far:

  • Spotube doesn't stop running sound Apps and just plays in the Background. Seems to be sometimes directly on Android as well.
  • There are also some Songs not playing. After I skip them, the next ones it sometimes works. For me this looks like a broken Download, which was cached and might work after deleting the App data. My reasoning: if it happens, then most of the time on the same song. Maybe it has something to do with this: Spotube stops playing the next song after it finishes the current one #580

I will add the Android log in the next edit.
Log.txt

@GitHub0901
Copy link

It's available in the nightly release https://spotube.krtirtho.dev/other-downloads/nightly-downloads

You are great! Well done! Is a very important modification to the app, and I tell you a secret: Tidal don't work with AA ;)
I will try it with AA and post some photos, but now Spotube is in the application list in my phone at AA :-)
Great job and I will try to collaborate with the project :-)

@ghost
Copy link

ghost commented Aug 19, 2023

Just as a proof (don't judge my music taste :p)

image

Unfortunately no UI for now 😢 image

this is only working with desktop head unit. not with in car aa unit. how to make that work in cars, can you pls post a video on that.

@ghost
Copy link

ghost commented Aug 19, 2023

New here. Please help bro

@KRTirtho
Copy link
Owner

Sorry to say that fella but please learn from any tutorials. We can't help with anything that is not related to this project
We expect the users to know how to use Android Auto

@ghost
Copy link

ghost commented Aug 19, 2023 via email

@TrueMB
Copy link
Author

TrueMB commented Aug 19, 2023

I didn't understand. Bcz i searched google and only find tutorials to run
it in desktop unit. Other practices are through rooting. Its said only apps
installed through play store appear in android auto. Give me something to
continue. I am stuck

Search on Google for Android auto developer options. Also in the release note was mentioned: don't install it through the Playstore

@ghost
Copy link

ghost commented Aug 19, 2023 via email

@TrueMB
Copy link
Author

TrueMB commented Aug 19, 2023

Also make sure you selected it in AAScreenshot_2023-08-19-16-31-51-84_31f2d1fb8a9cb6537600cbf449362b94.jpg

@ghost
Copy link

ghost commented Aug 19, 2023 via email

@TrueMB
Copy link
Author

TrueMB commented Aug 19, 2023

Take a look on the posts of the developer.

Also make sure that the app can starts in the background. That should fix the one issue

@TrueMB
Copy link
Author

TrueMB commented Aug 24, 2023

Beforehand: I only used AA + Spotube 2 times yet. I will do a longer test at home tonight and maybe send a video as well.

What I see so far:

* Spotube doesn't stop running sound Apps and just plays in the Background. Seems to be sometimes directly on Android as well.

* There are also some Songs not playing. After I skip them, the next ones it sometimes works. For me this looks like a broken Download, which was cached and might work after deleting the App data. My reasoning: if it happens, then most of the time on the same song. Maybe it has something to do with this: [Spotube stops playing the next song after it finishes the current one #580](https://github.com/KRTirtho/spotube/issues/580)

I will add the Android log in the next edit. Log.txt

To let you know, it seems to work perfectly fine since the last release. Sometimes there I got the weird Issues, if I am still connected to my wireless and start driving away from it, it keeps being connected to my wireless. Even if I am already down the street. After disabling manually the wireless, it seems to work. This was no problem without spotube. But since I know how to handle that, this is no problem.

Now to finalize, what would be nice as well:

  • A Button to add the current playing Song to favorites
  • A Menu to choose between the playlists

But like I already said, I am completely happy with the current features and using it now daily!

Edit:
Also, after disconnecting Bluetooth Devices, it would be nice if Spotube stops playing the music. Depending on what volume you set your devices, this may end bad :D

@KRTirtho
Copy link
Owner

KRTirtho commented Aug 24, 2023

Also, after disconnecting Bluetooth Devices, it would be nice if Spotube stops playing the music. Depending on what volume you set your devices, this may end bad :D

This one is crucial for every device. May be when output source changes Spotube will automatically stop (pause)

@zachvlat
Copy link

zachvlat commented Nov 14, 2023

In my case it used to work during August with a Nightly build that introduced the AA functionality (I 'm sorry but I can't remember the exact version). Since then I 'm using the stable one, I 'm seeing the app on the AA's dashboard but when I open it it doesn't show my playlists. But if I play a song on mobile (from the app) it shows the "Playing Now" song. (forgot to tell you that currently I 'm using the f-droid build 3.2.0)

@KRTirtho
Copy link
Owner

@zachvlat This is expected as currently flutter doesn't support Android Auto's UI.

Btw, anyone who knows Kotlin/Java or Jetpack Compose should be easily able to replicate a simple UI for Spotube for Android Auto.

@zachvlat
Copy link

@zachvlat This is expected as currently flutter doesn't support Android Auto's UI.

Btw, anyone who knows Kotlin/Java or Jetpack Compose should be easily able to replicate a simple UI for Spotube for Android Auto.

I see, but how I managed to watch my playlists etc? Using the same app. (as I said I don't recall the exact version).

@KRTirtho
Copy link
Owner

KRTirtho commented Nov 14, 2023

You probably didn't see it in the Android Auto interface but in your phone. Playlists which are playing in AA can be seen in the mobile app. Both interconnected 😄

@rjgonza
Copy link

rjgonza commented Jan 21, 2024

Is this still only in the nightly release?

I reread this thread and it seems like this made it in to the stable release. I enabled developer mode on Android auto but I still don't see it as an option to add to the launcher with nightly or stable. Is there something to enable on the Spotube app itself? Can someone that got this working tell me the version of Android Auto they are running?

@zachvlat
Copy link

As far as it goes right now, Spotube stable IS on AA, but you can't interact with it (with playlists, albums etc.). If you play something from your phone, though, it will appear as a player only (you can only pause, skip songs etc.). I 'm gonna switch to Nightly to see if something has changed.

@KRTirtho
Copy link
Owner

FYI, Spotube playstore version doesn't have AA due to no UI at that moment. But Fdroid or Github/website version has AA

@rjgonza
Copy link

rjgonza commented Jan 22, 2024

FYI, Spotube playstore version doesn't have AA due to no UI at that moment. But Fdroid or Github/website version has AA

Thanks, maybe I'll try reinstalling. I have the F-Droid version in
Screenshot_20240122_050956_F-Droid.jpg

And still don't see it to choose on the launcher:
Screenshot_20240122_051838_Android Auto.jpg

@emskia-bgp
Copy link

Same as above on Android 14 and apk from GitHub

@Bwangster12
Copy link

Can the online search from SimpMusic be referenced here? They figured out a way to do online search for AA and show online playlists.

@stefanov-stefan
Copy link

Same as above on Android 14 and apk from GitHub

@KRTirtho I did install the nighly, but it does not appear in the AA launcher. Any advice?

@rjgonza
Copy link

rjgonza commented Mar 8, 2024

Same as above on Android 14 and apk from GitHub

@KRTirtho I did install the nighly, but it does not appear in the AA launcher. Any advice?

Same for me, tired a few different things and eventually gave up. Might revisit if there are updates, but sticking with Spotify for now.

@TrueMB
Copy link
Author

TrueMB commented Mar 8, 2024

Screenshot_2024-03-08-13-47-36-13_31f2d1fb8a9cb6537600cbf449362b94.jpg

Just tested it with the 3.4.1 version and everything seems to work fine. I am using the release apks.

Also Android 14

@TrueMB
Copy link
Author

TrueMB commented Mar 8, 2024

Small add. I do have Developer Options enabled and checked the "trust unknown sources". You might need to do that.

@stefanov-stefan
Copy link

That worked. Thanks!

@emskia-bgp
Copy link

emskia-bgp commented Mar 8, 2024 via email

@stefanov-stefan
Copy link

Screenshot_20240308_160318_Android Auto
Screenshot_20240308_160326_Android Auto
Screenshot_20240308_160331_Android Auto

@emskia-bgp
Copy link

emskia-bgp commented Mar 8, 2024 via email

@maxlieb
Copy link

maxlieb commented May 7, 2024

Just saying: Proper android auto integration is the only reason I'm still paying for Spotify premium instead of using a modified Spotify app or Spotube.
The unknown sources trick is not working half the time for wireless android auto for some reason, only for wired connection it works consistently.

@df8819
Copy link

df8819 commented Oct 16, 2024

Any news regarding Android Auto/Assistant integration? I use the official playstore release and can't see the app (nor can I see the dev option to trust sources. Huawei EMUI 12.0). I can open the app and my car will play the music, but every time I try to switch songs with the steering wheel buttons, it tries to adress YouTube Music instead and plays two sonds at the same time🤡

I wish this will work soon flawlessly👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

No branches or pull requests

10 participants