I have 2 client apps. app 1 (APP1) have set a tag named idtag with values ["idtag1" "idtag2"]. app2 (APP2) have no set any tag. If i use pushwoosh interface, creating a filter idtag(idtag1), and throwing a new pushnotification, it runs fine, APP1 receive the notification, and APP2 don´t. But, when i try do the same, with remote api in java, i´m not able to.
I supouse that i have to add another ".put" in this piece of oficial code from sample in java (i get it from oficial documentation link text
JSONArray notificationsArray = new JSONArray() .put(new JSONObject().put("send_date", "now") .put("content", "test") .put("link", "http://pushwoosh.com/"));
I supouse too, that i have to add a "conditions" and a condition like the filter, something like ["idtag", "EQ", "idtag1"]... but i try everything and i´m not able to get a result... always get an
"status_code":210,"status_message":"Can t parse expression"
Could someone add the lines that is needed to get what i get with the filter and pushwoosh interface?
Thanks in advance and excuse my bad english
Please sign in to leave a comment.