Hi,

I want to set more then one value for a specific tag per device. Here is a piece of the request string:

"tags":{"landcode":["nl","be"],"merk":["bmw","volkswagen"],"bouwjaar":"2010","km":"100000"}

When i take a look at the tags in the pushwoosh control panel i see that the tag has been altered but the value that has been added is "" (nothing, empty string)

Is this the correct way to be adding multiple values for one tag per device?

Thanks for your answer.

Grtz,

Erik

asked 04 May '14, 07:37
ibizzdevelopers's gravatar image

ibizzdevelopers
1112

Yes, it's the correct way to set multiple values of the List type tag for the device.

{
"request":{
  "application":"",
  "hwid": "",
  "tags":{
       "ListTagName": ["value1", "value2", "value3"],
       "AnotherListTagName": ["value1", "value2", "value3"]
         }  
     }
}

Please try our latest Titanium module with some fixes regarding list tags: https://pushwoosh.zendesk.com/attachments/token/roqIF25FdYtRKOYJcND7CBTpQ/?name=Pushoowsh+Titanium+module.zip

If it doesn't work, please contact our support (help@pushwoosh.com) with your Pushwoosh username so that we can locate your account and look into the issue precisely.

permanent link
answered 05 May '14, 11:21
Alex%20Spotar's gravatar image

Alex Spotar
3.6k6

edited 05 May '14, 11:29

Thanks Alexander!

I'll update the module. I'm currently developing for iOS. The link you gave is for the android version :-) The strange thing is, is that i installed the new version of the app on my iPad and the iPad is still receiving notifications. (Even after registerring and un-registerring a couple of times)

So perhaps there is something wrong with my iPhone and how it is registered in the pushwoosh DB?

Thanks.

Erik

permanent link
answered 05 May '14, 11:57
ibizzdevelopers's gravatar image

ibizzdevelopers
1112

Maybe you forgot to make JSON object from your request string? Function call should be something like that:

PushWoosh.setTags(JSON.parse("{"tags":{"landcode":["nl","be"],"merk":["bmw","volkswagen"],"bouwjaar":"2010","km":"100000"}}"));

permanent link
answered 06 May '14, 13:43
Fectum's gravatar image

Fectum
2604

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:

×64
×30

question asked: 04 May '14, 07:37

question was seen: 1,280 times

last updated: 06 May '14, 13:43