I have several filters and want to send a push for those users who match at least one of them. For example I have three tags:

morning_pushes_enabled: boolean fresh_news: list funny_videos: list

I want to send a push using the following rule: mornign_pushes_enabled="true" AND (fresh_news="ANIMALS" OR funny_videos "CATS")

How can I implement it using PushWoosh?

asked 16 May '16, 19:06
Vladimir's gravatar image


To achieve this you should use the conditions parameter of the /createMessage request. You can learn more in this section of our Remote API Guide:


Please keep in mind that “filter” and “conditions” parameters should not be used together. Also, both of them will be ignored, if the "devices" parameter is used in the same request.

permanent link
answered 17 May '16, 09:41
idedov's gravatar image


Could you please write the condition for my example?

(25 May '16, 11:54) Vladimir Vladimir's gravatar image

Actually, if you want to send push for those users who match at least one of the filters, you should use /createTargetedMessage request. Sorry for not seeng it from the start, please refer to our Guide for details:


In your case the conditions should look like this:

"devices_filter": "A(\"your_appcode\") * (T(\"mornign_pushes_enabled\", EQ, \"true\") + T(\"fresh_news\", EQ, \"ANIMALS\") + T(\"funny_videos\", EQ, \"CATS\"))" }

(25 May '16, 15:04) idedov idedov's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 16 May '16, 19:06

question was seen: 747 times

last updated: 25 May '16, 15:06