@@ -0,0 +1,650 @@
+package com.selfservit.util;%0A%0Aimport org.json.JSONArray;%0Aimport org.json.JSONException;%0Aimport org.apache.cordova. * ;%0Aimport org.json.JSONObject;%0A%0Apublic class mPushNotification extends CordovaPlugin %7B%0A%09 @ Override%0A%09public boolean execute(final String action, JSONArray args, final CallbackContext callbackContext)throws JSONException %7B%0A%09%09/* START BACKGROUND SERVICE IF NOT RUNNING ALREADY */%0A%09%09if (action.equals(%22GetToken%22)) %7B%0A%09%09%09String token = FirebaseInstanceId.getInstance().getToken();%0A%09%09%09if(!token.equals(null)) %7B%0A%09%09%09%09callbackContext.success(token);%0A%09%09%09%7Delse%7B%0A%09%09%09%09callbackContext.error(%22Token not yet generated%22);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return true;%0A%09%7D%0A%7D%0A

Create mPushNotification.java