diff --git a/src/android/JPushPlugin.java b/src/android/JPushPlugin.java index b820e34..9582f4b 100644 --- a/src/android/JPushPlugin.java +++ b/src/android/JPushPlugin.java @@ -89,7 +89,12 @@ public class JPushPlugin extends CordovaPlugin { data.put("alert", alert); JSONObject jExtras = new JSONObject(); for(Entry entry:extras.entrySet()){ - jExtras.put(entry.getKey(),entry.getValue()); + if(entry.getKey().equals("cn.jpush.android.EXTRA")){ + JSONObject jo = new JSONObject((String)entry.getValue()); + jExtras.put("cn.jpush.android.EXTRA", jo); + }else{ + jExtras.put(entry.getKey(),entry.getValue()); + } } if(jExtras.length()>0) {