如何使用azure函数中的hub发送通知:
context.bindings.notification = {
message: "Hello from " + req.body.name
};
收到错误。
写的文件:
This example sends a notification for a template registration that contains
使用azure功能时如何注册模板?
答案 0 :(得分:3)
首先,这是指向notification hub bindings docs
的链接以下是您需要做的事情:
{"aps": {"alert": "$(message)"}}
context.bindings.notification = {
message: "this goes in the $(message) above"
};