Hi, I need a help i successfully sent sms and getting response from api call with messageId and success. that means the message is delivered but the intended user did not receive any message. Could you please help me to resolve this issue, i have been trying could not able to find any way to solve it.
@@CodingWithAdo Country : India Country code : +91 here is the messageId: { "message": "0562fc1e-c464-509d-8ec7-a24197b2fe18", "success": true } here is the code im using take make call to sns const credentials = await fromIni({}); logCredentials(); console.log("credentials:",credentials);
hi sir when i tried with similar code in node js iam able to send message for indian numbers but it is failing for us numbers it is aws console showing failed how to fix it it
@@CodingWithAdo actually i did exactly you shown in video after that i did some of own research and then now i get the response when i see in aws sns console i see the the messages are failed
@@NarayanMaity-z5n for US phone numbers you need to have a number configured on aws, docs.aws.amazon.com/sns/latest/dg/channels-sms-awssupport-long-code.html
do not add background music again
Appreciate your time Ado!
What is that background music? Do you think you're going to play these videos at a DJ event or something?
Tried that, didn’t make enough money 😂😂
I want to integrate same thing send otp on phone but its not working in my case for swift and android can you help me ?
Hi, I need a help i successfully sent sms and getting response from api call with messageId and success. that means the message is delivered but the intended user did not receive any message. Could you please help me to resolve this issue, i have been trying could not able to find any way to solve it.
1st which country?
2nd mind sharing the log message here?
@@CodingWithAdo Country : India
Country code : +91
here is the messageId:
{
"message": "0562fc1e-c464-509d-8ec7-a24197b2fe18",
"success": true
}
here is the code im using take make call to sns
const credentials = await fromIni({});
logCredentials();
console.log("credentials:",credentials);
const snsClient = new SNSClient({
region: 'ap-south-1',
credentials: credentials
});
const params = {
Message: message,
PhoneNumber: phoneNumber
// MessageAttributes: {
// 'AWS.SNS.SMS.SenderID': {
// DataType: 'String',
// StringValue: subject
// }
// }
};
const command = new PublishCommand(params);
const data = await snsClient.send(command);
console.log("Message sent. MessageId:", data);
country:India
country code:+91
log message:
{
"message":"a3e8e6e4-1af-5663-bb32-b8850a248724",
"success":true}
I can't hear you. sorry. Where did you get the phone number from, AWS interface is so complicated.?
Yeah, i did a poor job mixing my voice and the background music, i will try to re-upload this video, thanks for the heads up!
The phone number is the destination number
I can't make it work with US phone numbers.
Do you want to share your Github repo and i can take a look
code is the same as yours. It works with other countries' phone numbers.
hi sir when i tried with similar code in node js iam able to send message for indian numbers but it is failing for us numbers it is aws console showing failed how to fix it it
stackoverflow.com/questions/69539036/why-are-my-sms-messages-sent-via-amazon-sns-not-being-received-by-indian-phone-n
did u configure something else other than in this video is showing to send message to indian numbers because i am getting any messages
@@NarayanMaity-z5n No other configuration than the one you saw, if you want, send me a DM and we can chat so I can help you debug it
@@CodingWithAdo actually i did exactly you shown in video after that i did some of own research and then now i get the response when i see in aws sns console i see the the messages are failed
@@NarayanMaity-z5n for US phone numbers you need to have a number configured on aws, docs.aws.amazon.com/sns/latest/dg/channels-sms-awssupport-long-code.html
background music was totally awfull for this video,
lose the music