You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a use case to send users a push notifcation based on their role OR location. How do I use the CreateNotificationAsync method to send a notification based on such criteria?
According to the documentation, in order to correctly specify this behavior, I believe the final json data would be something like:
Hi @VictorGazzinelli,
I had the same demand in regards to the OR operator and actually was a bit confused that OneSignal does not follow their own specification here. But it looks to me as if they are using some kind of code generator and that there is no "real" development happening on this project. So the issue probably lies in the code generator being used, since the proper values are in the spec.
Would be nice to know what is being used, so the issue for the code generation can be addressed to the proper party.
How can we help?
I've got a use case to send users a push notifcation based on their role OR location. How do I use the
CreateNotificationAsync
method to send a notification based on such criteria?According to the documentation, in order to correctly specify this behavior, I believe the final json data would be something like:
With this, I believe there is two issues:
lat, long
andradius
props must be added to theFilter
class/model.Any ideia how can I achieve this? Let me know if i can help submiting a PR.
Victor Gazzinelli
Code of Conduct
The text was updated successfully, but these errors were encountered: