[OneSignal Plugin] OneSignal Tags not working properly

Forge Component
(13)
Published on 18 Oct by OutSystems R&D
13 votes
Published on 18 Oct by OutSystems R&D

Hello,

I have a support case open with some issues, and I will add this one today to that support case. In the meantime I wonder if someone already found and fixed this issue.


Currently the way the structure for filters is built the tags go like this to onesignal:

[{"key":"DeviceTerminal","field":"tag","value":"5820","operator":"AND","relation":"="},{"key":"DeviceUser","field":"tag","value":"cristiano.marques@vopak.com","operator":"AND","relation":"="}]


However it should be parsed, according to their documentation, in the bellow format:

[
  {"field": "tag", "key": "level", "relation": "=", "value": "10"},
  {"operator": "OR"}, {"field": "tag", "key": "level", "relation": "=", "value": "20"}
]


Whats happening to me its basically I'm always broadcasting and the filters are being ignored.


Best regards

had a similar problem.  did you find any solution to this?

it seems to work by creating filteritem with just "Operator:OR" in between items.

[{"key":"userid","field":"tag","value":"321","relation":"="},{"operator":"OR"},{"key":"userid","field":"tag","value":"123","relation":"="}]