BimmerGestalt / AAIdrive

Implementations of some Android Auto features as unofficial IDrive apps
MIT License
557 stars 92 forks source link

Unable to grant spotify browse library #825

Closed EPIC-Snake closed 1 month ago

EPIC-Snake commented 1 month ago

Hi,

Thanks for this amazing project, I thought integration with spotify was long dead. I'm having an issue where i'm unable to grant access to spotify library browse. Spotify search is checked and seems okay though. Last error message i received is "result was not delivered on time". I'm using Samsung s22+ with Android 14. Spotify version no. 8.9.78.513. I've tried reinstall of both Spotify and AAIdrive and making new playlists and tuning settings.

This app is so close in making my dear i3 feel "modern" again, thanks again!

hufman commented 1 month ago

Android's RPC system is quirky. Make sure Spotify is able to run in the background to receive the app control connection. Spotify Search just goes through the web API.

EPIC-Snake commented 1 month ago

I've elevated all permissions and tried enabling and disabling spotify settings. Battery optimalization for both apps have been set to unlimited use and background use is allowed. When triggering the grant button to spotify library a notification pops up from spotify saying that AAIdrive is trying to connect, but it never resolves and sometimes i get the timeout error message in AAIdrive. Since authentication with the API seems to work, would it be possible to move the library browsing or playlist browsing to the API as well?

EPIC-Snake commented 1 month ago

Tried logging in and out of spotify again and logging in while AAIdrive notification of connecting to spotify was active and in background and suddenly i got a popup message to allow AAIdrive access to spotify.

Seems it might be fixed

hufman commented 1 month ago

Glad it works! I can't use Spotify Web to control the app while the car is driving around and might not have Internet, which is the main goal.