Hello,

I'm trying to use your tags mechanism to target multiple devices. However it doesn't work as expected.

  1. First I have created a tag named "category".

  2. Next, I'm setting the tags like this:

    {
    "request": { "application":"xxx",
    "hwid": "xxx",
    "tags": {
    "category": ["european", "african"] }
    }

  3. Finally I try to send a message with condition:

"conditions": [["category", "IN", ["african"]]] or

"conditions": [["category", "EQ", "african"]]

Those conditions work for only one of tag values (african or european). When they do for african then not for european and vice versa.

Am I'm misuing the API or this is some kind of bug?

Thank you and best regards, Mateusz

asked 07 Jul '14, 10:30
mateuszfiolka's gravatar image

mateuszfiolka
113

1

Hello Mateusz,

Could you please provide us your Pushwoosh username and the whole createMessage request that you are sending? Perhaps, there is some kind of a misprint there.

(07 Jul '14, 10:43) Dmitry Dyudeev Dmitry%20%20Dyudeev's gravatar image
1

Please note that your "category" Tag has the String type, and you should create a List Tag in order to set several values for a device.

Could you please try again with the List Tag and let me know about the results?

(07 Jul '14, 10:57) Dmitry Dyudeev Dmitry%20%20Dyudeev's gravatar image

@dmitry Yes, it makes sense. I did the fix, however it didn't help.

(07 Jul '14, 11:00) mateuszfiolka mateuszfiolka's gravatar image

@dmitry However creating new tag did help. Thank you very much :)

(07 Jul '14, 11:29) mateuszfiolka mateuszfiolka's gravatar image

Tag type of "category" is String(String tag can contain only one value per device). Please remove tag and create it tag with type "List"

permanent link
answered 07 Jul '14, 10:54
XXXX's gravatar image

XXXX
2.2k6

edited 07 Jul '14, 10:54

@FallDi Yes, it was my mistake. However removing and readding tag didn't help.

(07 Jul '14, 11:01) mateuszfiolka mateuszfiolka's gravatar image

@FallDi It worked on new tag. Thank you :)

(07 Jul '14, 11:30) mateuszfiolka mateuszfiolka's gravatar image
1

You are most welcome!

Please do not hesitate to write us if you have any further questions.

(07 Jul '14, 11:33) Dmitry Dyudeev Dmitry%20%20Dyudeev'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

By RSS:

Answers

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:

×326
×64
×37

question asked: 07 Jul '14, 10:30

question was seen: 4,389 times

last updated: 07 Jul '14, 11:33