当前,我有此参数可以准确地创建一条消息,
{
applicationid: config.PROJECT_ID,MessageRequest: {
Addresses: {
[token]: {
ChannelType: 'APNS'
}
},MessageConfiguration: {
APNSMessage: {
Title: notification.title,Body: notification.message
}
}
}
}
我在https://docs.aws.amazon.com/pinpoint/latest/developerguide/send-messages-push.html处基于我的代码,我使用邮递员检查了它,并且在出现推送通知时没有声音,我注意到声音没有可用的参数,如何在通知中添加声音?>
在AWS Pinpoint测试消息系统中,我使用了此参数,该参数按预期工作,但是当我尝试使用上述代码并应用它时,它说"Unexpected key 'aps' found in params.MessageRequest.MessageConfiguration"
{
APNSMessage: {
aps: {
alert: {
title: notification.title,body: notification.message
},sound: 'default'
}
}
}
我需要在NodeJS中使用aws-sdk添加默认值的声音