I'm using filters in create notifications with onesignal. I want to use 3 or more filters at a time but one filter must match and others can be optional. Read the docs but can't find option like this.
What I want?
Let say I have following 3 filters
- country
- language
- tag ( having key type and value 'premium' )
I want to send notification to users only from US, either having language english or type premium.
What I tried?
[
{field: "country", relation: "=", value: "US"},
{operator: "AND"},
{field: "language", relation: "=", value: "en"},
{operator: "OR"},
{field: "tag", key: "type", relation: "=", value: "premium"}
]
this is not working as expected.