GithubHelp home page GithubHelp logo

Comments (5)

kvba0000 avatar kvba0000 commented on September 26, 2024 2

Or you could use something mobile version of this app has - opening new window with Spotify login page where you can login to your account, and app could grab these cookies when logged in. (I was genuenly curious why it's a thing on mobile but not on PC)

from spotube.

thewh1teagle avatar thewh1teagle commented on September 26, 2024 2

@kbvivi
Sounds much better approach.
Do you have idea how to do something like that in a good way?
In terms of:

  1. finding the right browser
  2. open the specific webpage
  3. detect successful login and grab the cookie

from spotube.

kvba0000 avatar kvba0000 commented on September 26, 2024

@kbvivi Sounds much better approach. Do you have idea how to do something like that in a good way? In terms of:

1. finding the right browser

2. open the specific webpage

3. detect successful login and grab the cookie

App could probably just could take advantage of webviews to show Spotify login page in separate window that is not specifically some browser and then when app detects navigation - it will grab cookies from that webview. So basically the same as mobile version has but on PC
Sadly I can't do pull request with it myself because I don't have much knowledge about this specific language.

from spotube.

ShayBox avatar ShayBox commented on September 26, 2024

I came to suggest the same approach as Rookie as I've used that library before, but I don't think a similar library exists for Dart, it would have to be created.

The easier approach is going to be using web view or some form of controlled browser environment to have the user log in and extract the cookie after.

from spotube.

KRTirtho avatar KRTirtho commented on September 26, 2024

Flutter desktop has no Webview support. Although it's planned but it's stuck on PlatformViews support.
Which allows to overlay anything over Flutter UI. Flutter ios and Android has support for this but for desktop it's yet to be implemented.

flutter/flutter#41722
flutter/flutter#41724
flutter/flutter#31713

Although there's library like desktop_weview_windows and webview_windows, these don't expose any API to get the cookies.

from spotube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.