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

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) {
    if(window.StatusBar) {
      // org.apache.cordova.statusbar required
        parsePlugin.initialize('XXX', 'YYY', function() {
        }, function(e) {
        alert('Parse Error '+err.message); //this gets executed all time


I always get `Reference Error: parsePlugin not defined.


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" />

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">
            <action android:name="android.intent.action.BOOT_COMPLETED" />
            <action android:name="android.intent.action.USER_PRESENT" />
    <receiver android:name="com.parse.GcmBroadcastReceiver" android:permission="">
            <action android:name="" />
            <action android:name="" />
            <category android:name="com.ionicframework.ecopulse420832" />

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