This plugin provides a javascript API to Spotify's iOS SDK for Cordova applications.
Android integration is planned for a future release
-
Install the plugin:
`cordova plugin add com.timflapper.spotify`
-
Add the iOS platform to your project (if needed):
`cordova platform add ios`
-
The install script will start automatically. It will do two things:
- Ask you for a custom URL scheme.
- Download and extract the Spotify iOS SDK.
That's it!
Documentation can be found here
You can use the Ruby script that is included in the Spotify iOS SDK Demo Projects for development:
- Download the Spotify iOS SDK
- Follow the instructions from the Spotify iOS SDK beginner's tutorial.
To avoid being prompted for the custom URL scheme, you can alternatively provide it in an environment variable:
export CORDOVA_SPOTIFY_URL_SCHEME=somecustomscheme
cordova plugin add com.timflapper.spotify