Skip to content
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 to push notification by code for a specific user #672

Closed
1 task done
ChakibBenssoum opened this issue Dec 11, 2023 · 2 comments
Closed
1 task done

Comments

@ChakibBenssoum
Copy link

How can we help?

Hello !
I try to set-up a auto-notification system for my users, and i checked the example provided.
Sadly, the version isn't the right one (3.0.11, mine is 5.0.5).
I checked the migration guide, i tried to find the method "PostNotification" in the new api, but i really don't find how to do it. Can i have some help please ?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@shepherd-l
Copy link
Contributor

Hello!
PostNotification was removed in 5.x

We recommend using our API to send notifications rather than sending them on the device level due to the potential security issue of exposing another user's id on the device.

You can find our API documentation here: https://documentation.onesignal.com/reference/create-notification

If this doesn’t work for your use case, could you explain what your use case is?

@ChakibBenssoum
Copy link
Author

Thanks for your help, i finally find a solution.
Have a nice day !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants