Hi,

I want to send userid and device id to pushwoosh control panel and then send the notification on the behalf of userid in the phonegap application

thanks

asked 20 Nov '15, 07:55
sahabeip's gravatar image

sahabeip
113

Hello,

To submit a device with a particular userID you can use our Tags feature. Please let me explain in details:

First of all you should create a Tag in Pushwoosh Control Panel, then you should make a /setTags API request to set values for your tags:

{ "request":{ "application":"DEAD0-BEEF0", "hwid": "device hardware id", "tags": { "userID": "user1" }
} }

You can use the following method to set tag values on your device with Phonegap for iOS:

https://rawgit.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin/master/Documentation/files/PushNotification-js.html#PushNotification.setTags

Then you should create a filter in Control Panel and apply it to your messages while sending push (Filters tab) via Control Panel or adding "filter" parameter to your /createMessage request if sending via API.

permanent link
answered 24 Nov '15, 12:15
Vitaly%20Romanychev's gravatar image

Vitaly Roman...
2213

Thanks Vitaly,

After creating { "request":{ "application":"DEAD0-BEEF0", "hwid": "device hardware id", "tags": { "userID": "user1" } } },

Can I send Push Notification on the basis of UserId using Remote API

(25 Nov '15, 13:46) sahabeip sahabeip's gravatar image

Sure thing! You can use either "conditions" or "filter" parameter in your /createMessage API request in order to do that. Please find a detailed description following this link:

http://docs.pushwoosh.com/docs/createmessage

(25 Nov '15, 15:12) Vitaly Roman... Vitaly%20Romanychev'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:

×444
×352
×165
×91

question asked: 20 Nov '15, 07:55

question was seen: 1,633 times

last updated: 25 Nov '15, 15:12