Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone: How to Programmatically Respond to SMS Messages

Tags:

iphone

sms

After a review of the iPhone SDK documentation, I have not yet found a way for an application to be written such that it can programmatically process the content of an incoming SMS message within the iPhone platform. The idea would be for such an application to be running in the background and based on specifically formatted SMS messages would be able to take specific actions.

Does anybody know if this is possible with an iPhone SDK application and if so, provide a pointer to information about how this can be done?

like image 438
Tall Jeff Avatar asked Dec 23 '08 01:12

Tall Jeff


People also ask

Can iPhone automate text messages?

The Shortcuts app is a simple way to schedule a text message on your iPhone. It allows you to automate and schedule text messages to individual contacts or groups.

What is SMS relay on iPhone?

This allows users to send and receive Text Messages (i.e. the "green bubble" messages) on our Macs the same way we've always been able to send and receive iMessages. SMS Relay is made possible by using your iPhone as the conduit between your Mac and the SMS network.

Can iOS app read SMS?

No, there is no way to read SMS messages.


2 Answers

Unfortunately, you cannot intercept - or be notified of - incoming SMS messages with the iPhone SDK.

One possible alternative, is to register a custom URL scheme that launches your application when a url with that scheme is embedded in the sms message and the user cicks on it.

to set a custom url scheme, you must implement both the CFBundleURLSchemes and CFBundleURLName keys in your application's info.plist.

In your Application's delegate, you can then implement the application:handleOpenURL: method to get any paramaters that were passed to your App from the url in the SMS message.

like image 189
Brad The App Guy Avatar answered Oct 04 '22 15:10

Brad The App Guy


I believe that currently the SDK doesn't allow for background apps (except for apple ones).

like image 40
frankodwyer Avatar answered Oct 04 '22 15:10

frankodwyer