-
Notifications
You must be signed in to change notification settings - Fork 17
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
[Bug]: CAn't create notification using include_subscription_ids #67
Comments
Hey @bensebborn. Thanks for reaching out, we are sorry that you are having problems with this SDK. Do you use the latest version 2.0.1-beta2? We recently added 400 error handlers to all our endpoints While it may not fix the problem, it should at least show the error coming from the server. I'll create an internal ticket to investigate this problem. Meanwhile, if you are blocked by this issue you can always use this endpoints manually, making any type of HTTP requests (CURL, java script fetch etc.) https://documentation.onesignal.com/reference/create-notification |
Hi there, Thanks for the reply :) I noticed in the commits that the error handler had been removed from -beta2. I've just downgraded to -beta1 and I can now see the correct error message. Thanks! |
I don't understand that reply. Are you saying that using
@bensebborn says he downgraded to get a useful error message? Is that the expected approach? I am trying something very simple:
|
Pinning to version I find this worrying given that I am evaluating OneSignal with a view to purchasing a licence. It seems that this particular SDK is not keeping up with the API - and is breaking fundamental things with new releases? :( |
Same here, I had to downgrade to |
It's crazy that this has still not been sorted. Frustrated me all night until I came here to see this |
It's been recommended to me (by OneSignal) to use the REST API directly using any http client and to not use this particular SDK |
Hi, we have had no further reports of this. Please upgrade the OneSignal SDK if you or anyone is still having this issue. If this is still an issue, please open a new report with updated information and we will investigate. Thanks |
What happened?
Sending notification using "included_segments" works, however swapping this to use "include_subscription_ids" fails with a 400 error with no meaningful error message
Steps to reproduce?
What did you expect to happen?
Notification sent
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: