package com.mobishift.plugin;

import org.apache.cordova.CordovaPlugin;
import com.avos.avoscloud.AVInstallation;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/**
 * @author deckmon
 */

public class PushInstallationPlugin extends CordovaPlugin {
    public static final String TAG = "PushInstallationPlugin";

    @Override
    public boolean execute(String action, JSONArray data, CallbackContext callbackContext) {
        if (action.equals("get_installation_id")) {
            callbackContext.success(AVInstallation.getCurrentInstallation().getInstallationId());
        } else {
            return false;
        }

        return true;
    }
}

@@ -65,16 +65,59 @@
 Plugin;%0A
+import org.apache.cordova.CallbackContext;%0A
 import c
@@ -278,32 +278,31 @@
 c class 
-PushInstallation
+AVOSAndroidPush
 Plugin e
@@ -366,24 +366,23 @@
  = %22
-PushInstallation
+AVOSAndroidPush
 Plug
@@ -490,24 +490,65 @@
 kContext) %7B%0A
+        boolean result = false;%0A        %0A
         if (
@@ -583,24 +583,51 @@
 ion_id%22)) %7B%0A
+            result = true;%0A
             
@@ -743,20 +743,22 @@
       re
-turn
+sult =
  false;%0A
@@ -783,20 +783,22 @@
  return 
-true
+result
 ;%0A    %7D%0A

fix bug