Hi. I'm using named user tags group to associate UA users with tags in an external system. I need to be able to push notifications to multiple users with different tags. user1 might have tag 1 and user2 might have tag 2 so I want to send 1 notification that will go to tag 1 OR tag 2. I have followed the example in the documentation used for AND but with an OR, but I'm not getting any notifications sent. my request looks like the following
{
"notification": {
"alert": "New Document is available: p22||471 test",
"ios": { "priority": 10, "content_available": true, "expiry": 0 },
"actions": { "open": { "type": "deep_link", "content":"Some content here" } }
},
"audience": {
"OR": [
{ "tag": "22", "group": "product" },
{ "tag": "471", "group": "product" }
]
},
"device_types": [ "ios" ]
}
In this example teher is at least 1 user that has both tag 22 and 471 in the product group. I have also tried this with tags other tags. I once got it to send a notification with another compbination of tags, but have not been able to repeat it.
also is the following a valid request that should send a notification to anyone with the tag 22 or do I need to not use an or if I only have 1 tag?
{
"notification": {
"alert": "New Document is available: p22||471 test",
"ios": { "priority": 10, "content_available": true, "expiry": 0 },
"actions": { "open": { "type": "deep_link", "content":"Some content here" } }
},
"audience": {
"OR": [
{ "tag": "22", "group": "product" }
]
},
"device_types": [ "ios" ]
}
Comments
9 comments