How to use notification in Firebase functions? Error: could not handle the request
How to use notification in Firebase functions? Error: could not handle the request
我无法使用来自 firebase 函数请求的通知,怎么了?
错误:无法处理请求
谢谢
image
const admin = require("firebase-admin");
var message = {
notification: {
title: '$GOOG up 1.43% on the day',
body: '$GOOG gained 11.80 points to close at 835.67, up 1.43% on the day.'
}
};
admin.messaging().sendToDevice(token,message)
我无法使用来自 firebase 函数请求的通知,怎么了? 错误:无法处理请求
谢谢
image
const admin = require("firebase-admin");
var message = {
notification: {
title: '$GOOG up 1.43% on the day',
body: '$GOOG gained 11.80 points to close at 835.67, up 1.43% on the day.'
}
};
admin.messaging().sendToDevice(token,message)