< a href = "~/Views/Devices/Create.cshtml" > ~/ Views / Devices / Create.cshtml a >
Send Push Message
- You can find the logic for sending a web push notification in Controllers/WebPushController.cs:Send
- The Payload Generation Helper fields below are not sent to the web push api. They are simply used to generate the json payload which will be sent.
- Client side code for handling push notifications can be found at wwwroot/sw.js
- You can include any data in your payload, as long as your sw.js handles it.