void setAlias(JSONArray data, CallbackContext callbackContext) {
   try {
     String alias = data.getString(0);
     JPushInterface.setAlias(
         this.cordova.getActivity().getApplicationContext(), alias, mTagWithAliasCallback);
     callbackContext.success();
   } catch (JSONException e) {
     e.printStackTrace();
     callbackContext.error("Error reading alias JSON");
   }
 }
 public void setAlias(long func_handler, Context context, String alias, long func_ptr) {
   callback_ptr = func_ptr;
   callback_handler = func_handler;
   JPushInterface.setAlias(
       context,
       alias,
       new TagAliasCallback() {
         @Override
         public void gotResult(int arg0, String arg1, Set<String> arg2) {
           // TODO Auto-generated method stub
           setAliasAndTagsCallback(callback_handler, arg0, arg1, arg2, callback_ptr);
         }
       });
 }