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] Cannot login #152

Closed
Dieal opened this issue Jul 26, 2022 · 30 comments
Closed

[Android] Cannot login #152

Dieal opened this issue Jul 26, 2022 · 30 comments
Labels
bug Something isn't working deployed This issue has been fixed/implmented and has been released

Comments

@Dieal
Copy link

Dieal commented Jul 26, 2022

Describe the bug
After inserting Client ID and Secret ID I get redirected to a page that asks me to allow Spotube application. When I press the Allow button I get a Timed Out page (localhost link) after waiting for at least 20 seconds. I've already added the localhost redirect, but it doesn't seem to work.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Login to Spotify'
  2. Insert credentials
  3. Submit and get redirected to Application's approval website
  4. Allow the Spotify application

Expected behavior
I don't know, I think I should be logged in after allowing the spotify app

Screenshots
IMG_20220726_020326_138.jpg

Screenshot_20220726-020209_Bromite.png)

Screenshot_20220726-020213_Bromite.png

Screenshot_20220726-020243_Bromite.png

Installation Source/Method
APK Release on Github

Smartphone (please complete the following information):

  • Device: Pocophone F1
  • OS: LineageOS
  • Version: Android 11
@Dieal Dieal added the bug Something isn't working label Jul 26, 2022
@Dieal
Copy link
Author

Dieal commented Jul 26, 2022

Tested on Linux, it works. It's an Android issue or it's my phone's fault

@meinto
Copy link

meinto commented Aug 1, 2022

Works on android. Have you added the redirect URI in your Spotify app like mentioned in the readme? http://localhost:4304/auth/spotify/callback

@jvihczocizix
Copy link

I have the same problem, it doesn't work on Android or Linux

@meinto
Copy link

meinto commented Aug 1, 2022

@jvihczocizix also LinageOS and Android 11? I am on Android 12.

@jvihczocizix
Copy link

I use GrapheneOS with Android 12.But for me it also didn't work with Linux Ubuntu.

@Dieal
Copy link
Author

Dieal commented Aug 1, 2022

Works on android. Have you added the redirect URI in your Spotify app like mentioned in the readme? http://localhost:4304/auth/spotify/callback

Yes, in fact on Linux (which works) I used the same Spotify App that I used on Android

@Dieal Dieal closed this as completed Aug 1, 2022
@KRTirtho
Copy link
Owner

KRTirtho commented Aug 3, 2022

@jvihczocizix Try with a different account & see if that works

@KRTirtho KRTirtho reopened this Aug 3, 2022
@Xandorion
Copy link

Does it now work cuz for me not, i have the same issue?

@k1m3rA
Copy link

k1m3rA commented Aug 25, 2022

Same problem, any suggestions?

@KRTirtho
Copy link
Owner

May be for some reason the dart server isn't getting started. It could be os restriction or something else running in the same port

@Xandorion
Copy link

Is there a solution for?

@KRTirtho
Copy link
Owner

Currently, I don't have any idea why exactly this is happening as I've never encountered this kind of issue. Now, I can only help if someone already facing the problem can build and run the Spotube in debugging mode in their case device and submits the logs from the terminal while trying to logging in

@ArijitBh
Copy link

Same issue from my end

@KRTirtho
Copy link
Owner

The latest nightly should fix the localhost not found issue. Can you guys check?

@Xandorion
Copy link

Hello, i installed the nightly build but it still ends in "ERR_CONNECTION_TIMED_OUT"

@ArijitBh
Copy link

ArijitBh commented Sep 15, 2022 via email

@KemonoElite
Copy link

I tried the Nightly build aswell and didn't fix the issue that seems simular to this

@KemonoElite
Copy link

Update to this.

For some reason when I did it the same as I did previously, type secret and client code enter wait for my browser to pop up, agreed, waited for the local host to say it took to long then restarted my phone then it magically had my playlist from spotify and allowed me to search.

I am not sure if this will work for others but this generally is what I did for it to magically work for me.

@kimi-builds
Copy link

Have got my Android client to work, both in the GitHub latest release (which has a random song disconnection issue that probably isn't tied to my broadband) and in the F-Droid one. What I did was forcing the browser it used to authenticate to read a desktop user agent string, respectively, a Windows and Linux referring, in their due positions. After some retries, although the "connection timed out" always appeared, I got back to the app and saw the affirmative login status.

@KRTirtho
Copy link
Owner

KRTirtho commented Oct 3, 2022

I've completely re-written the Authentication system/flow of Spotube. Now it's just as easy as Logging into official Spotify App
No sh*t Redirect URLs, no stupid Client ID and Client Secrets 😤
In Mobile, Now it can be done using good'ol Email and Password 🎉 🚀 🔥

For desktop, it's far simpler than the older system but still needs some manual copying and pasting
Instead of using ClientID and ClientSecret it now uses official cookies. Which are easy to copy and paste
The "Follow along the Guide" is also updated and shows the new, easy way to login in Spotube desktop

Everything is already available in the latest nightly and hopefully will be available in the next stable release

@Xandorion
Copy link

Im so sorry, but i downloaded the last nightly build, i see that i can now login with normal Spotify Login but after the login on the Page it just shows u the options to open webplayer or account overview. It dont go back to spotube and if i go manually back nothing happens, no login :/

@KRTirtho
Copy link
Owner

KRTirtho commented Oct 5, 2022

You're in Germany and your locale is not english right?

@KRTirtho
Copy link
Owner

KRTirtho commented Oct 5, 2022

@Oopsiedai, try again with the latest nightly. It's fixed now and works for every region

@Xandorion
Copy link

Now it works, was immideatley logged in as i started the app, now its good, thank you :)

@ArijitBh
Copy link

ArijitBh commented Oct 12, 2022 via email

@KRTirtho KRTirtho added the deployed This issue has been fixed/implmented and has been released label Oct 13, 2022
@KRTirtho
Copy link
Owner

The new authentication Flow is now available in latest v2.5.0 🎉 🥳

@KRTirtho
Copy link
Owner

Since this issue is finally resolved, I'm going to close it

@mfyddti
Copy link

mfyddti commented Nov 10, 2022

The user name or password is incorrect

@mfyddti
Copy link

mfyddti commented Nov 10, 2022

why?

@Ramys
Copy link

Ramys commented Nov 10, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deployed This issue has been fixed/implmented and has been released
Projects
None yet
Development

No branches or pull requests