I am able to send a single SMS on BlackBerry, but when I try to send more than one SMS, only the first is sent.
AFAIK
you can send sms to multiple numbers using loop.
you have the code to send single sms,
for (int i = 0; i < mobileNumbers.length; i++) {
//method for sending single sms
sendSMS(mobileNumbers[i],msg);
}
Maybe you can use MultipartMessage to send large messages.
Related
I have a studio flow that receives chat messages (from Whatsapp) and forward the conversation to Flex.
I'm trying to send a SMS notification to a hard-coded number as this happen.
The issue is that the SMS is never sent and the Send Message widget fails with the following log:
Failure sending message: Chat service or channel parameter missing
I understand that it's probably because the flow has a Chat context and that the widget expects a Chat Service. But I want to send a SMS.
I tried to configure the Send Message widget like this:
SEND MESSAGE FROM and SEND MESSAGE TO set and all other config fields empty
SEND MESSAGE FROM and SEND MESSAGE TO and PROGRAMMABLE CHAT SERVICE with a Messaging Service ID (which doesn't really make sense but hey...)
Neither worked.
How can I send a SMS from a Chat flow in Studio?
I was just able to knock up a quick Studio Flow that receives messages from WhatsApp and sends out an SMS to a hard-coded number and it worked for me. The way I did it was to hard code both the Send message from and Send message to numbers in the Messaging & chat config section of the Send Message widget, like this:
In this case you must ensure that the Send message from number is a Twilio number that is able to send SMS messages.
I am integrating Twilio SMS service where my users are able to send SMS messages to their clients. I would like to be able to link each reply with the sent SMS. In another word, is there any field in the Message Resource that could lead me to conclude whether the incoming message received is related to the outgoing message my user sent previously ? I need same behavior as Email send/reply functionalities.
Twilio developer evangelist here.
There is no way to do this I’m afraid, the SMS protocol has no information about users replying to a specific message. SMS is chronological, you can test this by opening your phone’s SMS app and trying to reply to the second to last message you received from someone. In SMS there’s no way to do that.
The best thing you can do is consider the messages chronologically, and assume that the reply is in response to the last message you sent to that number from the number you sent it from.
I suspect your are interested in this because you need to send notifications and get responses to those notifications and you realised you might need to send more than one notification to a user at a time but still get their responses. The best way to get around this is to use different numbers to send the different notification messages from, then when they reply you can tell which notification they were replying to by the number they sent the message to.
I am sending SMS to the list of million of phone numbers Through twillio notification API.
But I want to keep track about SID against each phone used. so that I can process it further for any phone number.
So what's the better way.
is there a way that allow me to get phone SID by providing phone number to the API.But again there will be issue that sometimes I send multiple messages to the same phone number.
How can I do this. As making twillio notification call to send bulk sms it does not return SID's of every number used in binding
You can use the statusCallback in the Messaging Service Twilio Notify is using to get the Messaging SID's for each. Make sure your server infrastructure can handle the volume of webhooks Twilio returns to it.
My Twilio number will not receive SMS text messages from SmartThings.
I have SmartThings set to send me SMS text message notifications to my Twilio number.
According to the API, SmartThings is sending the SMS text messages:
{
"destinations": {
"SMS": {
"status": "OK",
"to": "XXXXXXXXXX"
}
}
}
https://graph.api.smartthings.com/
According to my Twilio log I am getting no incoming SMS text messages.
https://www.twilio.com/console/sms/logs
This worked a few days ago. Now it doesn't.
SmartThings will successfully send SMS text messages to my mobile phone. And Twilio will successfully receive SMS text messages from my mobile phone.
Is there some rate based blacklist filtering? Do I need to whitelist the SmartThings short code somehow?
Why won't SmartThings send an SMS text message to my Twilio number?
Or, why won't Twilio receive SMS text messages from SmartThings?
It seems Twilio numbers cannot receive messages from short codes.
I found these in Twilio support documents:
Are you expecting to receive SMS from a short code?
Services like Google Voice, Facebook, and Skype, which use short codes
(e.g. 55555) to send SMS will not be able to send messages to Twilio
phone numbers. This is because short code carriers have arrangements
to exchange messages with mobile phone numbers only, and Twilio phone
numbers are not considered mobile numbers.
-- Not receiving SMS messages on Twilio phone number
and
Twilio numbers cannot send messages to or receive messages from
short codes at this time whether they are Twilio short codes or
external short codes.
-- Can my Twilio number send SMS to a non-Twilio short code?
This is disappointing and I do not understand why it worked a few days ago.
I want to send a background SMS in iOS 7, and i dont want user to have to interact with any front end view. How can i do this ?
I will use this application for myself (no app store), so private api allowed .
With MFMessageComposerViewController it is not possible to send without user interaction. You have to take SMS gateway and implement your own way of sending SMS, than only it is possible. Like you have to create webservice and accept parameters from iPhone like phonenumber and message and than send SMS using SMS gateway.
Hope this helps.