Custom Events iOS - How to send an array of items on the properties object

Hello,

I am sending custom events to Airship, along with properties on the properties object. I am able to access properties on the properties object when I send data along with a custom event like this:

let addToCartRetailTemplate = UARetailEventTemplate.addedToCart()
let addToCartRetailEvent = addToCartRetailTemplate.createEvent()
var propertyDictionary = Dictionary <String, Any>()
propertyDictionary["brand"] = "brand_value"
addToCartRetailEvent.properties = propertyDictionary
addToCartRetailEvent.track()

But I can't access properties sent as an array of objects. How do I send/access properties on the properties object when sending an array of objects? I want to send something like this to Airship

{
    "items": [
        {
          "brand": "brand_value"
        }
    ]
}

so I can access it like the example in your documentation: 

{{#each items}}
{{brand}}
{{/each}}

Didn't find what you were looking for?

New post

Comments

1 comment

  • Hi Nathan, 

    Since you fall under Footlocker support, I've gone ahead and created a support ticket for you. Please respond there for further support. 

    Best wishes, 

    Frenchy F.
    Technical Support Engineer | Airship | New York

    Comment actions Permalink

Please sign in to leave a comment.