Open banhawchun opened 1 year ago
Looks like the error is due to the constructor performing a null check. If you use the constructor instead of initializing manually it should work fine.
In addition you can not combine segments and Filters in one notification. You can check the API Reference on that: https://documentation.onesignal.com/reference/create-notification#send-to-users-based-on-filters
Hello bro, were you able to solve this? I am having the same problem and I have not been able to solve it, I have had to use IncludePlayerIds which is a function that is depreciated, thanks a lot
What happened?
I want to send notification base on user tags filter but it seems like i cannot initialize Filter() without it throws null error:
ArgumentNullException: Value cannot be null. Parameter name: field is a required property for Filter and cannot be null OneSignalApi.Model.Filter..ctor(string field, string key, string value, RelationEnum relation) in Filter.cs, line 116
Steps to reproduce?
What did you expect to happen?
It should not be null when we provide value to "field" already
Code of Conduct