How do I send notification using hub from azure functions:
context.bindings.notification = {
message: "Hello from " + req.body.name
};
Getting an error.
The document written:
This example sends a notification for a template registration that contains
How can I register template when using azure function?
First, here's a link to the notification hub bindings docs
Here is what you need to do:
{"aps": {"alert": "$(message)"}}
context.bindings.notification = {
message: "this goes in the $(message) above"
};