/cordova-spotify-plugin

This plugin provides a PhoneGap / Cordova API for the Spotify iOS SDK.

Primary LanguageObjective-CMIT LicenseMIT

Cordova Spotify Plugin

Build Status

This plugin provides a javascript API to Spotify's iOS SDK for Cordova applications.

Android integration is planned for a future release

Installation

  1. Install the plugin:

     `cordova plugin add com.timflapper.spotify`
    
  2. Add the iOS platform to your project (if needed):

     `cordova platform add ios`
    
  3. The install script will start automatically. It will do two things:

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:

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