AWS SNS for India

房东的猫 提交于 2019-12-22 09:43:41

问题


I am using the aws sns service to push/send messages for US mobile number and to do so used the below method.

a) load sns

$sns = new A2Sns(array(
            'key'    => 'aaaaaaaaaa',
            'secret' => 'bbbbbbbbbbbbbbbbb',
            'region' => 'us-east-1'
        ));

b) create topic

c) set topic attribute

d) create subscription

But, the same method is not working for Indian mobile number. Is it really possible? If so, what i have to for that?


回答1:


When this question was asked in late 2015, non-U.S. mobile numbers were not supported when sending SMS from SNS, and at the time, that was the correct answer to the original question.

As noted in the comments, this is no longer the case.

SNS announced global SMS capabilities in June, 2016.

See also http://docs.aws.amazon.com/sns/latest/dg/sms_supported-countries.html


Historical reference from the Internet Archive "Wayback Machine" captured in September, 2015 --

SMS notifications are currently supported for phone numbers in the United States. SMS messages can be sent only from topics created in the US East (N. Virginia) region. However, you can publish messages to topics that you create in the US East (N. Virginia) region from any other region.

http://web.archive.org/web/20150919111507/http://docs.aws.amazon.com/sns/latest/dg/SMSMessages.html




回答2:


We cannot use amazon SNS for non-US based mobile numbers. If you want to send the push notifications in INDIA you can hire external message API's or you can send the push notification using amazon to E-mail accounts



来源:https://stackoverflow.com/questions/32567163/aws-sns-for-india

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!