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

No documentation on postnotificationWithJson #676

Closed
QuantumLabsTz opened this issue May 2, 2023 · 1 comment
Closed

No documentation on postnotificationWithJson #676

QuantumLabsTz opened this issue May 2, 2023 · 1 comment

Comments

@QuantumLabsTz
Copy link

QuantumLabsTz commented May 2, 2023

I'm trying to send notification with postNotificationWithJson but there is no documentation on this function no examples. The biggest issue is the header and body. A simple example will help. This function is best because I can filter or use segments compared to osNotification which requires only playerIDs

@jennantilla
Copy link
Contributor

Hello @QuantumLabsTz apologies that this question was missed. I'm going to close this issue since it's gone stale.

We have dropped the postNotification / postNotificationWithJson methods from our latest User Model SDK.

You can continue to use our REST API to send out the Push, however - due to security risks for your REST API key, we do advise you to create an API to your backend and make the request from your backend instead of directly from your mobile app.

For more details please refer to the below document:
https://documentation.onesignal.com/reference/create-notification

Please let us know if you have any further questions or concerns!

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