58
Views
2
Comments
[OneSignal Plugin] OneSignal Tags not working properly
Question
onesignal-plugin
Mobile icon
Forge asset by OutSystems

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

2025-10-08 00-30-13
Jesse Patricio

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

2025-10-08 00-30-13
Jesse Patricio

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":"="}]

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.