Comments (6)
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.
Since it ionic, it is both android and iOS but I am testing on iOS currently.
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.
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.
The event emitter is not related to the login btw. You can login without getting an event emitter first.
from cordova-spotify.
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.
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)
- Build fails with "Could not find :spotify-sdk:" HOT 5
- plugin is not working on android 7.0 HOT 1
- Next/previous song and volume controls. HOT 3
- [Help needed] Example of getEventEmitter usage HOT 5
- Failing to build. HOT 6
- Failed to install 'cordova-spotify': CordovaError: Failed to fetch plugin es6-promise-plugin via registry. HOT 8
- Failed to install cordova-spotify: Cordova-error: Uh oh! HOT 2
- cordova-spotify.min.js.map error HOT 2
- Play multiple tracks? HOT 2
- TypeError: 'arguments', 'callee', and 'caller' cannot be accessed in this context. HOT 1
- Promise Not Resolving HOT 2
- New Plugin install generates error: Failed to restore plugin HOT 2
- Refresh token. HOT 2
- Read library content HOT 2
- Not able to play Podcast Episode HOT 1
- App crash on IOS 13.1 HOT 7
- the plugin does not work in ios
- Documentation Link Broken - getEventEmitter HOT 1
- Trouble installing on Windows HOT 3
- How to search for a track? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-spotify.