pushwoosh icon indicating copy to clipboard operation
pushwoosh copied to clipboard

Feature Request - push targeting with tags

Open axilaris opened this issue 8 years ago • 1 comments

Feature Request. Can you support this Pedro ? we cant target ios devices reliably.

-----------------------this is what pushwoosh responded

To target specific users you sure can use the device's push token in the "devices" section of your createMessage request. You can retrieve push tokens of your users by using a specific method of our SDK (getPushToken). Please note though, that it is not very reliable way, since APNs/GCM/etc. tends to change push tokens every now and then.

The more reliable way is to use our Tag feature. You can set a Tag and register each device under this tag with its unique ID, e-mail or alias. Tags also have their advantages, since they can be used both via Remote API or Control Panel, and you can send your notifications to users who have your app installed on several devices.

So, if you would like to use Tags, you need to implement it within your app (please see our SDK samples for examples) and use Filters in the Control Panel, or "filters"/"conditions" parameters in your Remote API request:

"conditions": [TAG_CONDITION1, TAG_CONDITION2, ..., TAG_CONDITIONn] where TAG_CONDITION should look like this: ["alias", "EQ", "john_smith"]

Please refer to our Remote API Guide for more details:

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


Please note that UDID on iOS is not unique to a device, but varies for each application, for each installation. It changes if you delete and re-install the app, and possibly also when you upgrade iOS, or even upgrade your app per version. The UDID is not a reliable value.

axilaris avatar Apr 28 '16 08:04 axilaris

Very nice @axilaris, I will be working on it soon.

pedroandrade avatar May 02 '16 01:05 pedroandrade