-
Notifications
You must be signed in to change notification settings - Fork 11
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]: Response returned from CreateNotificationAsync is always null with IncludeExternalUserIds #28
Comments
I have the same problem. |
Thank you for reporting we will investigate |
Same in here. We got bombarded with null pointers over weekend. |
We have identified the issue and are working on releasing the fix ASAP! |
Any update here @emawby? |
Hi guys! Any news about this issue? |
You cannot use dotnet simplified type initiators with the Notification Modle class. You have to use standard constructors, at this stage. I am tempted to work on a fix, but here is another way of declaring the |
Hi @Hoang-Minh Are you able to make it work? |
Is there anybody who found solution? |
We did not find any solution but we implemented direct API. |
@sangheraajit so how to do it correctly? Could you show sample? |
public async Task<CreateNotificationSuccessResponse?> SendNotification(List UserIds, string message)
|
@sangheraajit thanks, but what is the difference? |
Hi @PatryxCShark, I have responded to your previous question with the answer below: Thanks for asking, but you may be wondering about the difference between the codes. The first code uses pure HTTP request, without using the SDK. Meanwhile, NotificationData is a custom class that we created. Here is the class structure:
Regarding your question about sending scheduled messages to an external user who is not subscribed at the moment of pushing notification, you can use a workaround by creating your own scheduler and executing the notification send function at the scheduled time. I hope this clarifies everything for you. Let me know if you have any further questions. Best regards. |
Unfortunately @sangheraajit it makes OneSignal a bit problematic and a bit useless for sending notifications as scheduled. |
A year later, and no fix yet? |
What happened?
Notification is sent to user. However, response returned is null. Triggering through postman with the same object returns response with an id.
Steps to reproduce?
What did you expect to happen?
If the notification is sent successfully, the response should not be null and it should have an id like it does with postman
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: