Sending text message SMS without user intervention - ios

Is it possible to send sms via iphone without user intervention? I already know about MessageUI framework and MFMessageComposeViewController class, but this option requires user to click Send button when MGMessageComposeViewController is presented. I would like the device to automatically, without my help send a text message when certain conditions are met. (I have some sensors connected to the device)

No. You can only open a message ready to send but you cannot send it automatically.

If you want to be able to send sms without user's interaction, consider using some third party gateway. TextMagic provides nice api to send sms, but it is not free. At some point it charges you money. But, they have nice and simple api to use.
Look at this,
http://api.textmagic.com/https-api/textmagic-api-commands#send

Related

Sending Group SMS iOS Swift - How to go beyond carrier's restriction of 9 - 20 messages per send attempt

I am designing an iOS app that receives multiple contact numbers from a server and sends messages to those numbers. I have made this service with an external API called Twilio, but Twilio costs(quite a lot actually if all my users are to send bulk messages). I want to make this App free for use and to make the user pay for the number of text messages they send, which will be charged by their carrier.
I found an app called 'Group SMS 4!' by Cedars and this app does exactly what I wanted. I'm sharing you the link for the app on the appstore
Group SMS 4!
I've used the app, and I know it doens't use an external SMS gateway but MFMessageComposeViewController. But I though sending programmatically through iPhone restricted the number of texts sent to be less than 9 ~ 20 (depending on the carrier).
So my conjecture on how this problem was solved was,
Divide the contacts in a group of 5~9 somehow and send them separately, and sequentially when send button is pressed
Was my guess correct? If not, What would be a way to achieve this? I just need the user to be able to send up to 100 people automatically and without hassle. Thank you in advance.

How send SMS without iMessage

I see how to send SMS with MessageUI ans it's work fine but I need send sms with an iPad cellular but it can't send without iMessage. Someone know if it's possible to send sms for all my phone numbers ?
You can't do it without MFMessageComposeViewController. Apple won't allow to send SMS without user interaction.
As per document
You must not modify the view hierarchy presented by this view controller. You can, however, customize the appearance of the interface using the UIAppearance protocol.
I've alternate solution of this, Alternative way can be Using web service API. Create a web service at server side that send a message to specific number(s) that accept numbers as parameters with request.(according to your requirement)
As using Web server or external sms provider can do it.
http://www.twilio.com/
http://www.nexmo.com/
https://www.tropo.com/

How to receive sms on my ios app (workaround)?

I know i can't access the sms database of a ios device, but there's no workaround to achieve the same task using other tools?
My app must send an sms (which i do presenting the regular view of the ui message framework and asking the user to send it) and then receive a reply sms.
There's no way to receive this sms? There are online service or whatever can help me to do this?
No, the situation has not changed in recent years: there is no way to read any SMS (except if you're on a jailbroken device).
But one thing you can do is embed an URL in your reply SMS that the user needs to tap. You can then use an URL handler in your app to handle these. Like:
myapp://smsreceived?id=123&result=456
There's plenty of documentation on how to implement URL handlers.

BlackBerry: how to send messages (pin, mail, sms) to multiple subscribers automatically?

I'm planning to do an BB app. But I don't know if it is possible. I ask for your recommendation.
It will consist of two apps.
The first: the user will download it. He will be subscribed to the app, sharing his mobile number, PIN, and mail (could this be done automatically? This is, without the user typing that info and sending it)
The second: the admin will send messages of different nature (sms, mail and/or pin) to the subscribers of the first app.
Summarizing: I would like to send messages (of different kind) to many users. I looked, and, at least, in the BB API is possible to send mails to multiple users. But, how to do it with sms and pin.
Also, how would be the code logic that subscribe the users? Could be done automatically? If not, do I need a dedicated server to store the info of the users? etc.
If you have a more elegant way to achieve what I'm posting, please, let me know.
It sounds like one of your requirements is to originate the messages from a BlackBerry. This may be inefficient and costly.
The best solution to send data to multiple BlackBerry users is the Push Service which you can read about here: http://us.blackberry.com/developers/platform/pushapi.jsp

blackberry - need to receive sms within my application without notifying inbox (silently)

I'm developing a blackberry SMS appication.
Which needs to filter all incoming messages which have only with a specific keyword (ex - Starts with ABC).
The messages with this keywords will not allow goto the inbox.
Is it possible with messageListner ?
I got to know that this may be possible by invoke class. But i don't have a clear idea on this. Could anyboday help me on this ?
I don't think it's possible. RIM doesn't provide such function.
But there is another way to achieve this: turn on firewall in the system's option and filter all the sms, now system can't recieve notifications of sms while your application can. This is used in most sms firewall apps.

Resources