spotube icon indicating copy to clipboard operation
spotube copied to clipboard

Android Auto Support

Open TrueMB opened this issue 1 year ago • 40 comments

Is there an existing issue for this?

  • [X] 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: https://github.com/KRTirtho/spotube/issues/60

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

TrueMB avatar Aug 10 '23 09:08 TrueMB

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

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 :sweat:

KRTirtho avatar Aug 13 '23 16:08 KRTirtho

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

image

Unfortunately no UI for now :cry: image

KRTirtho avatar Aug 13 '23 16:08 KRTirtho

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

KRTirtho avatar Aug 13 '23 16:08 KRTirtho

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 avatar Aug 13 '23 17:08 TrueMB

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: https://github.com/KRTirtho/spotube/issues/580

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

TrueMB avatar Aug 15 '23 06:08 TrueMB

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 :-)

GitHub0901 avatar Aug 18 '23 19:08 GitHub0901

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 avatar Aug 19 '23 08:08 ghost

New here. Please help bro

ghost avatar Aug 19 '23 09:08 ghost

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

KRTirtho avatar Aug 19 '23 11:08 KRTirtho

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

On Sat, Aug 19, 2023, 4:45 PM Kingkor Roy Tirtho @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/KRTirtho/spotube/issues/623#issuecomment-1684920958, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCAML7CDYNZIK26MHH3UV6LXWCN4HANCNFSM6AAAAAA3LHS25M . You are receiving this because you commented.Message ID: @.***>

ghost avatar Aug 19 '23 14:08 ghost

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

TrueMB avatar Aug 19 '23 14:08 TrueMB

If you mean turning developer options on and unknown sources its already done, still don't show ui in car unit

On Sat, Aug 19, 2023, 7:57 PM TrueMB @.***> wrote:

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

On Sat, Aug 19, 2023, 4:45 PM Kingkor Roy Tirtho @.***> wrote:

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

— Reply to this email directly, view it on GitHub #623 (comment) https://github.com/KRTirtho/spotube/issues/623#issuecomment-1684920958, or unsubscribe

https://github.com/notifications/unsubscribe-auth/BCAML7CDYNZIK26MHH3UV6LXWCN4HANCNFSM6AAAAAA3LHS25M . You are receiving this because you commented.Message ID: @.***>

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

— Reply to this email directly, view it on GitHub https://github.com/KRTirtho/spotube/issues/623#issuecomment-1684989187, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCAML7DKTC5HFD377PNHXI3XWDENBANCNFSM6AAAAAA3LHS25M . You are receiving this because you commented.Message ID: @.***>

ghost avatar Aug 19 '23 14:08 ghost

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

TrueMB avatar Aug 19 '23 14:08 TrueMB

Ohh ok ok sorry my mistake. Worked But there is a problem, don't know if its my device only. After connecting to car I can start spotube from car apps list or phone, it just comes blank, black screen in mobile and keeps rotating in aa unit. But first opening on mobile and then connecting usb works fine. Also please work on changing tracks.

On Sat, Aug 19, 2023, 8:02 PM TrueMB @.***> wrote:

Also make sure you selected it in AA[image: Screenshot_2023-08-19-16-31-51-84_31f2d1fb8a9cb6537600cbf449362b94.jpg] https://user-images.githubusercontent.com/25579052/261803481-abe9fa69-fd44-42b8-8ac0-01ea00f898cb.jpg

— Reply to this email directly, view it on GitHub https://github.com/KRTirtho/spotube/issues/623#issuecomment-1684999713, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCAML7CLEIBDMJCF43OAU63XWDFBJANCNFSM6AAAAAA3LHS25M . You are receiving this because you commented.Message ID: @.***>

ghost avatar Aug 19 '23 14:08 ghost

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 avatar Aug 19 '23 14:08 TrueMB

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

TrueMB avatar Aug 24 '23 06:08 TrueMB

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)

KRTirtho avatar Aug 24 '23 14:08 KRTirtho

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)

zachvlat avatar Nov 14 '23 13:11 zachvlat

@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.

KRTirtho avatar Nov 14 '23 14:11 KRTirtho

@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).

zachvlat avatar Nov 14 '23 14:11 zachvlat

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 :smile:

KRTirtho avatar Nov 14 '23 15:11 KRTirtho

~~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?

rjgonza avatar Jan 21 '24 14:01 rjgonza

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.

zachvlat avatar Jan 22 '24 09:01 zachvlat

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

KRTirtho avatar Jan 22 '24 09:01 KRTirtho

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

rjgonza avatar Jan 22 '24 10:01 rjgonza

Same as above on Android 14 and apk from GitHub

emskia-bgp avatar Feb 26 '24 18:02 emskia-bgp

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

Bwangster12 avatar Mar 07 '24 16:03 Bwangster12

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?

stefanov-stefan avatar Mar 08 '24 12:03 stefanov-stefan

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.

rjgonza avatar Mar 08 '24 12:03 rjgonza

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 avatar Mar 08 '24 12:03 TrueMB