Text messages have the highest open rate of any communication media today. Learn how to send text messages right from your Bubble application with the Twilio API.
Guide
References
Did you know? This guide was made possible by six Bubblers chipping in through Guides by CoBubble.
@iamsalar Question regarding Twilio. For all numbers that does not use +1 infront I get an error saying that the number is not a valid number. I.e. for South Africa +27 the numbers are not valid. I haven’t been able to get assistance from Twilio as yet.
Thank you for the guide. I did everything like in the guide and have this issue:
So I had to buy a phone number form Twilio since the country I am residing doesn’t support sms.
I chose phone number form Sweden and the number which I verified and used is from Denmark:
When I try the API call it give me this error:
So it appears that either bubble or Twilio want’s to use the same country code as From number and puts it in front of To number although I already have country code for To number, therefore it doesn’t identify it as valid number.
@iamsalar my client told me that it’s a paid account but Twillio confirmed he only has a trial account. It seems like this might be the problem. Will keep you updated if I find anything else.
@alvis I have the same issue but I’ve just found out that my client is on a trial account and not a paid account. Apparently that seems to be the problem. I don’t know if it will be the same for you.
I think you will need to put the + in before the country code, without it the Twillio docs say it will default to the code of the from number.
Also, Twillio uses the same “Invalid Number” message for both numbers that aren’t phone numbers as well as “You can’t do that from this number” so for trial accounts you will need the from and the to both be verified. If they aren’t it gives you the same message.
Still doesn’t work. I upgraded my account, bought different numbers from different countries and sent sms to bunch of numbers. Tried it with or without +/country code etc.
If I send sms from Twilio account it works but when I do it from bubble it doesn’t.
Here is how the log looks like from bubble:
and here is the same sms in Twilio: