I need to get badge count in my application. I am using amazon SNS service. Here is my code
AWS.config.update({
accessKeyId: 'XXXXXXX',
secretAccessKey: 'XXXXXXX'
})
AWS.config.update({ region: 'XXXXXXX' })
const sns = new AWS.SNS()
const params = {
PlatformApplicationArn: 'XXXXXXX',
Token: deviceToken
}
sns.createPlatformEndpoint(params, (err, EndPointResult) => {
const client_arn = EndPointResult["EndpointArn"];
sns.publish({
TargetArn: client_arn,
Message: message,
Subject: title,
// badge: 1
}, (err, data) => {
})
})
I need to know where I can add badge
option here?
Thank you!!!
from Badge count option in amazon SNS
No comments:
Post a Comment