Git Product home page Git Product logo

Comments (6)

NeoLegends avatar NeoLegends commented on May 20, 2024

This is exactly how the plugin is supposed to be used. Does the plugin return any specific error in the promise or do you instantly get an error thrown when calling the methods?

Are you on Android or iOS? Could you post some console logs (either native, via Android / iOS Debugger, or from the web context via Chrome Debugger or Safari Debugger)? This would help identifying the issue.

from cordova-spotify.

ryantrappy avatar ryantrappy commented on May 20, 2024

Since it ionic, it is both android and iOS but I am testing on iOS currently.
screen shot 2017-10-16 at 12 47 41 pm

Here is an output of the event emitter and the error I get. I am not sure why it thinks I am passing the wrong username/password as I am passing the actual auth token. I looked at #27 and their event emitter had all the possible events and other events but mine does not have any of that. Are these two related?

from cordova-spotify.

NeoLegends avatar NeoLegends commented on May 20, 2024

No. Wrong username / password indicates the token you supplied is invalid. Are you sure you‘re passing in a valid one with the required scopes („streaming“ in this case)?

from cordova-spotify.

NeoLegends avatar NeoLegends commented on May 20, 2024

The event emitter is not related to the login btw. You can login without getting an event emitter first.

from cordova-spotify.

ryantrappy avatar ryantrappy commented on May 20, 2024

That fixed it! Thank you very much. I read in another issue about required scopes but it just clicked that that meant spotify requested scopes and not the scope of the app.

from cordova-spotify.

NeoLegends avatar NeoLegends commented on May 20, 2024

Spotify does request OAuth scopes! (Remember, this is not your angular scopes, OAuth scopes represent the capabilities of the auth token).

Our Spotify OAuth plugin is specifically designed to prevent invalid-token-errors by automatically refreshing the token whenever needed. See here: https://github.com/Festify/cordova-spotify-oauth.

from cordova-spotify.

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.