Ionic and Cordova plugins


I apologise if this is a duplicate, but I couldn’t find the answer I’m looking for in other posts.
I’m fresh with Ionic and Cordova, so I’m still trying to get my head around the architecture.

I’ve found ngCordova which doesn’t support the plugins I need, so I was wondering how and if I can use any Cordova plugin with Ionic.
I thought Ionic was based on Cordova so I just try to install the Cordova Spotify plugin, but it doesn’t compile.