I need to implement an app that detect an event when sms are received or sent on iPhone.Reading Sms is not required.
my app is going to run in background using apple's background multitasking feature for voip and navigators.
I can use private api as my client doesn't need this app on appstore.
Thanks.
It's definitely possible to detect when an SMS has been received or sent without jailbreaking the device, but I believe you can only access the phone number of the SMS, and not the actual message text.
You need to link against the CoreTelephony private api, and then register an event observer with CTTelephonyCenterAddObserver. See http://tech.ruimaninfo.com/?p=83 for an example. I've confirmed this works on iOS4, 5 and 6.