I在AWS上创建了一个“推送通知平台-Apple iOS(开发)”
我只是想从AWS SDK JSV3创建一个新的端点
const deviceId = 'a0b1c2d3e4f5' // would be a real deviceId
const createEndpointResponse = await client.send(
new CreatePlatformEndpointCommand({
PlatformApplicationArn: platformArn,
Token: deviceId,
})
)
const createTopicResponse = await client.send(
new CreateTopicCommand({
DataProtectionPolicy: 'STRING_VALUE',
Name: 'PushNotificationTestTopic',
})
)
console.log('Device-specific topic ARN', createTopicResponse.TopicArn )
const topicArn = createTopicResponse.TopicArn
我得到这个错误
{“ errortype”:“ InvalidParamEterexception”,“ errormessage”:“无效参数:dataprotectionpolicy Policy原因:无法解析数据保护策略”我结束了删除
它现在有效