Issues targeting namedUsers via Tags

I've created a tag group using Airship dashboard called 'follow-tag-group'.

Upon signup/signin in my iOS app, the app does this:

let namedUser = "user_\(userID!)"
UAirship.namedUser().identifier = namedUser
UAirship.push().updateRegistration()

Then when a user follows a business, the app does this:

let nu = UAirship.namedUser()
let tag = "business_\(self.business!.id)" // for our example, this will resolve to 'business_1'
nu?.addTags([tag], group: "follow-tag-group")
nu?.updateTags()

Now, when I compose a message through dashboard, select 'Target Specific Users', then search for tag 'business_1' nothing gets returned. What am I doing wrong ?

 

Didn't find what you were looking for?

New post

Comments

9 comments

  • Hey Sid,

    You are correct that this was an issue within the dashboard and API.

    Our engineers deployed a fix this morning and we are asking all who encountered this issue (like you and Zach) to retest to verify that the issue has been resolved. Please let me know the results.

     

    Update:

    Thank you Sid for testing and confirming that this solved the problem. 

    Comment actions Permalink
  • Followup:

    When I hit https://go.urbanairship.com/api/named_users/ I got a response that shows that tags are added to the named user properly:

    eg:

    {

    "named_user_id": "user_29",
    "tags": {
    "follow-tag-group": [
    "business_1",
    "business_3"
    ]
    },

    Comment actions Permalink
    0
  • Hello,

    A few questions for you:

    1. Is this issue still persisting?

    2. If so, what version of our SDK is being used?

    3. Can this issue be reproduced using our sample apps? Here is a document that has quick links to our github repos for swift & objective-c samples: Developer Resources

    Comment actions Permalink
    0
  • Hi Mike,

    1. Yes, this issue still persists.

    2. iOS SDK version of Urban airship is 8.4.X

    3. I think the issue is with the backend. I can see that the named user is there in your system:

    {

    "named_user_id": "user_29",
    "tags": {
    "follow-tag-group": [
    "business_1",
    "business_3"
    ]
    },

     

    But I'm not able to target this user using any of the tags. When I enter 'business_1' in Go Dashboard, I get nothing. 

    Comment actions Permalink
    0
  • We've received a few other reports of people experiencing similar issues and our engineering teams are currently investigating.

    I will let you know what they turn up.

    Comment actions Permalink
    0
  • Thanks for the update. 

    While waiting for the dashboard bug to get fixed by your engineering team, I tried the API:

    Remember I want to send a message to a namedUser based on tags via API. The named user that I expect to receive a message has 'business_1' included in his tag.

    I tried this:

    POST /api/push HTTP/1.1

    Authorization: Basic <master authorization string>

    Content-Type: application/json Accept: application/vnd.urbanairship+json; version=3;

    {
    "audience": { "tag": "business_1" },
    "notification": {
    "alert": "Hello!",
    "ios" : { "sound": "default" }
    },
    "device_types": "all"
    }

    The response was:

    HTTP 202 Accepted

    which implies that there were no issues with the API call. But the message was never received. Does this mean the issue is not only in the dashboard but a system wide (or am I doing something wrong above) ?

    Comment actions Permalink
    0
  • Sid,

    I was experiencing the exact same issue and they seemed to have fixed it (tested this morning).

    Comment actions Permalink
    0
  • I think this is partially solved. I have added two tags (business_1 and business_2) to a namedUser. Go Dashboard only allows me to push to business_2 (it worked and I received the notification on my device). When I entered business_1 in the targeting text field while composing a message, I saw a perpetual spinning wheel.

    Comment actions Permalink
    0
  • This bug seems to be resolved. I was able to send pushes based on nameUser tags. Thanks!

    Comment actions Permalink
    0

Please sign in to leave a comment.