mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 13:52:49 +08:00
#21 fix json parse issue in openNotificationInAndroidCallback
This commit is contained in:
parent
9fbd45c7c7
commit
95194695fe
@ -89,7 +89,12 @@ public class JPushPlugin extends CordovaPlugin {
|
||||
data.put("alert", alert);
|
||||
JSONObject jExtras = new JSONObject();
|
||||
for(Entry<String,Object> 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user