I used Twilio to send SMS verification in my app. I just send a single SMS per user using the Twilio REST API.
However, after launching, we got several complaints from international users. They never got the SMS.
What is the best way to implement SMS/Voice verification that works almost everywhere?
And yes, International SMS is enabled in my Twilio Account.
def sendByTwilio(phone, verificationCode):
try:
account_sid = "XXXXX"
auth_token = "XXXXXX"
client = TwilioRestClient(account_sid, auth_token)
rv = client.sms.messages.create(to="phone",
from_="XXXXXXXXXX",
body="Your verification code is "+str(verificationCode))
return True
except TwilioRestException, e:
pass
return False