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

[Bug]: Value cannot be null. (Parameter 'id is a required property for CreateNotificationSuccessResponse and cannot be null') #29

Open
1 task done
sangheraajit opened this issue Apr 11, 2023 · 1 comment

Comments

@sangheraajit
Copy link

What happened?

Getting the following error when trying to send a push notification

Value cannot be null. (Parameter 'id is a required property for CreateNotificationSuccessResponse and cannot be null')

public async Task SendNotificationToUser(string userid,string message)
{
Notification notification =new Notification(appId: "3bcfdf8e-d1aa-4fc1-9823-87fb8c19faa4");
//notification.AppId="3bcfdf8e-d1aa-4fc1-9823-87fb8c19faa4";
notification.Id=Guid.NewGuid().ToString();
notification.Contents =new StringMap();
notification.Contents.En=message;
notification.IncludeExternalUserIds=new List();
notification.IncludeExternalUserIds.Add(userid);
var result= await _oneSignalApiService.SendNotification(notification);
return Ok(result);
}

Steps to reproduce?

Value cannot be null. (Parameter 'id is a required property for CreateNotificationSuccessResponse and cannot be null')

What did you expect to happen?

Value cannot be null. (Parameter 'id is a required property for CreateNotificationSuccessResponse and cannot be null')

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@emawby
Copy link

emawby commented Apr 11, 2023

Thank you for reporting we will look into this!

@brismithers brismithers transferred this issue from OneSignal/OneSignal-DotNet-SDK Apr 14, 2023
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