The /createMessage documentation (http://docs.pushwoosh.com/docs/createmessage) says to set "Not more than 1000 tokens/hwids in an array" in the "devices" property in the request. But what exactly would happen if I do send more than 1,000 tokens/hwids?

Our Ruby on Rails app had attempted to send nearly 9,000 (!) devices and resulted in an error. Of course we'll be splitting the request into batches going forward, but I checked the Push history it looks like many devices got the notification. There's no log of the response error message for me to check and I'm afraid to try it again.

Anyone know what would happen if you do this?

Thanks!

asked 04 Nov '16, 17:00
parrotfish's gravatar image

parrotfish
211

Hello,

Please note that 1,000 devices in array is the maximum amount of devices that will be processed accurately.

Correct handling above a thousand devices in the array is not guaranteed, and for this reason it is highly not recommended.

Also, I kindly ask you to note that you can use Tags feature. Since raw push tokens tend to expire from time to time, and hwid's can change in some rare occasions, so it is not a reliable way to target your users. That is why I recommend using Tags feature instead. For instance, you can create a Tag "username" or "deviceID" and use it for targeting. Please note that Tags and Filters can be used without Remote API in your Pushwoosh Control Panel.

When a user logs in on a device and verifies his/her username, you set a Tag with this username by calling the setTags method in your app. That's all! Now you know that this device belongs to "john_smith" and you can send a message to it with one simple parameter

"conditions":[["username","EQ","john_smith"]]

The user will receive his notification. Moreover, if "john_smith" has two devices where he is logged in, they will be both tagged as "john_smith", and he will receive a push notification on both of them. You can also send it to several users at once:

"conditions":[["username","IN",["john_smith","jane_doe"]]]

In addition to this, you can create other Tags and let your users subscribe to them. You can find more information on Tags and Segmentation by following that link:

http://docs.pushwoosh.com/docs/segmentation-tags-and-filters

Regards, Nikita.

permanent link
answered 07 Nov '16, 07:15
novchinnikov's gravatar image

novchinnikov
2015

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:

×83
×52
×38
×4

question asked: 04 Nov '16, 17:00

question was seen: 664 times

last updated: 07 Nov '16, 07:15