【发布时间】:2018-06-29 14:50:42
【问题描述】:
我正在向admin.messaging().sendToDevice(fcmToken, message);提供以下有效负载
var message = {
notification: {
title_loc_key: "NOTIFICATION_TITLE",
body_loc_key: "NOTIFICATION_BODY",
body_loc_args: ["Body Arg"],
sound: 'default'
}
};
但是这会产生以下错误:
Messaging payload contains an invalid value for the "notification.body_loc_args" property. Values must be strings.
我不明白“Body Arg”如何不是字符串。我也尝试指定一个字符串,但这也没有用...
知道可能是什么问题吗?
谢谢
【问题讨论】:
标签: ios firebase firebase-cloud-messaging