timflapper / cordova-spotify-plugin

This plugin provides a PhoneGap / Cordova API for the Spotify iOS SDK.
MIT License
48 stars 12 forks source link

Error: Can't find variable: session #6

Open frey1esm opened 9 years ago

frey1esm commented 9 years ago

Trying to run spotify.getPlaylists via:

spotify.getPlaylists(session.canonicalUsername, session, function(error,result) { if(error) alert("error: " + error); var playlists = result; });

In my code, the 'session' object does exist and is a proper Spotify session object.

The error is being thrown on line 57 of request.js:

options.uri = options.uri.replace('$U', session.canonicalUsername);

So, is somehow session not getting passed to the plugin???

frey1esm commented 9 years ago

@timflapper - Any thoughts on this issue? 'session' is also not getting passed to www/lib/remote.js.

eugjlee commented 8 years ago

If your still having this issue, I may have a solution for you.