Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Switz213

macrumors 6502
Original poster
I searched around and couldn't find the exact answer to this specific question. Is there anyway to make the iPhone "listen" for a text message. I don't need to know anything about the text message or who its from, just that one came. Also, if possible to listen for a sent text message too.

Thanks,
Switz
 
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_0_2 like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5C1 Safari/525.20)

there is a notification sound that plays when a message comes in, is that what you mean?
 
The OP wants to fire an event when a message comes in. Nothing to do with sound 🙂
 
I mean within the code. I want the code to "listen" for an SMS. The only trouble I see is that apps can't run in the background, but maybe something will work??
 
The OP wants to fire an event when a message comes in. Nothing to do with sound 🙂

Well not necessarily have something happen, but I want an application to be able to know its happened and something in that application happen. I feel like what I said before might stop this though.
 
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_0_2 like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5C1 Safari/525.20)

Oh yeah, my mistake 🙂
 
You can't get any kind of information about text messages. Only thing you can do is create a new message using the sms:// URL, and even that is undocumented 🙂
 
You can't get any kind of information about text messages. Only thing you can do is create a new message using the sms:// URL, and even that is undocumented 🙂

What if I wanted to be able to count the total amount of texts, there is no way of doing that through the SDK?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.