我不能使用firebase功能请求的通知,有什么不对? 错误:无法处理请求
由于
{{3}}
答案 0 :(得分:1)
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)