Parse Plugin not working

Hi guys,
I am facing a weird Cordova Plugin issue. I’m trying to use Avivais Parse plugin for PhoneGap.

a. Run this command in Ionic project directory.
cordova plugin add https://github.com/benjie/phonegap-parse-plugin

b. Add android platform. ionic platform add android

c. in www/js/app.js add this code.

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    if(window.StatusBar) {
      // org.apache.cordova.statusbar required
      StatusBar.styleDefault();
    }
    try{
        parsePlugin.initialize('XXX', 'YYY', function() {
            alert('success');
        }, function(e) {
            alert('error');
        });
    }catch(err){
        alert('Parse Error '+err.message); //this gets executed all time
    }
  });
})

Issue

I always get `Reference Error: parsePlugin not defined.

Note

a. The plugin is installed and shows in plugins/org.apache.cordova.core.parseplugin

b. The platforms/android/res/xml/config.xml has

<feature name="ParsePlugin">
        <param name="android-package" value="org.apache.cordova.core.ParsePlugin" />
 </feature>

c. The index.html has <script src="cordova.js"></script>

d. AndroidManifest.xml

<service android:name="com.parse.PushService" />
    <receiver android:name="com.parse.ParseBroadcastReceiver">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
            <action android:name="android.intent.action.USER_PRESENT" />
        </intent-filter>
    </receiver>
    <receiver android:name="com.parse.GcmBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
            <category android:name="com.ionicframework.ecopulse420832" />
        </intent-filter>
    </receiver>

Can anyone please tell me what am I missing here to add or check?