cordova-spotify-plugin
cordova-spotify-plugin copied to clipboard
This plugin provides a PhoneGap / Cordova API for the Spotify iOS SDK.
Cordova Spotify Plugin
This plugin provides a javascript API to Spotify's iOS SDK for Cordova applications.
Android integration is planned for a future release
Installation
-
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!
API
Documentation can be found here
Setting up a token exchange service
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.
Non-interactive installation
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
License
MIT