-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question]: How do I send a notification filtering the users role OR location? #41
Comments
Hi @VictorGazzinelli, Would be nice to know what is being used, so the issue for the code generation can be addressed to the proper party. I forked this repo and I am using a modified version of the library, it is not up-to-date though. If it helps you can find it here: https://github.com/bnoffer/onesignal-dotnet-api/tree/support_or_operator_for_notification_filters and build a Nuget yourself. I know, it is not the recommended way to do it, but it works. |
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: