Just a side note:
Iirc Spotify does not use Electron - it uses the Chromium embedded Framework. It is kinda the same as electron (it gives you an Browser) but instead of JavaScript you have to use C++ (or a wrapper around the library in you favourite language) to implement the Backend side of the app