We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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); }
No response
The text was updated successfully, but these errors were encountered:
Thank you for reporting we will look into this!
Sorry, something went wrong.
No branches or pull requests
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?
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
The text was updated successfully, but these errors were encountered: