web-push-csharp | Web Push library for C | Web Framework library
kandi X-RAY | web-push-csharp Summary
kandi X-RAY | web-push-csharp Summary
Web Push library for C#
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of web-push-csharp
web-push-csharp Key Features
web-push-csharp Examples and Code Snippets
Community Discussions
Trending Discussions on web-push-csharp
QUESTION
I'd like to make web push with c#. In the backend I use web-push-csharp. I try to test it with postman before pass the API to frontend developer but I get this error.
"Message": "An error has occurred.", "ExceptionMessage": "The best overloaded method match for 'WebPush.WebPushClient.SendNotificationAsync(WebPush.PushSubscription, string, System.Collections.Generic.Dictionary)' has some invalid arguments", "ExceptionType": "Microsoft.CSharp.RuntimeBinder.RuntimeBinderException",
The error comes from payload in the json body because when I replace it with a simple string , the error is gone.
This is the json body in postman:
...ANSWER
Answered 2021-Apr-02 at 15:03Solved by creating the payload like this :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install web-push-csharp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page