SpinnerDialog plugin gives undefined

Hi, i’ve installed the SpinnerDialog as per the instructions. I have several other plugins working just fine. But the SpinnerDialog when trying to use it gives:

undefined is not an object (evaluating ‘e.plugins.spinnerDialog’)

The line of code executing is:

$cordovaSpinnerDialog.show("Laddar","Vänligen vänta", true);

I’ve tried using window.plugins… as per the Git page, but same result.

I’ve remove and re-added the iOS platform several times. I’ve tried both Cordova 3.7.0 and 3.6.x.

Anyone that can give me pointers?

For future readers. This was a typical “race condition” problem. Cordova wasn’t ready before the app wanted to display the loading message. Solved it by wrapping the app in a script that waits for “deviceready” and then using angular.bootstrap() to kickstart the applicaiton.