reading / parsing SMS from inbox WITH user permission IOS

madmax picture madmax · Nov 26, 2012 · Viewed 9.7k times · Source

I'm looking to access the SMS inbox from within an app. This is what I currently understand -

  1. The standard SDK does NOT allow access to the sms db due to privacy reasons iphone app reading sms and How to programmatically send SMS on the iPhone?

  2. The app must not be running in the background due to privacy reasons

  3. An application cannot access another application's data as each app runs within its sandbox

  4. It's possible to access the contact list though (Whatsapp, e.g.) https://developer.apple.com/library/ios/#documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/100-Introduction/chapter_1_section_1.html

  5. It is / maybe possible to do this on a jailbroken iPhone How to get inbox all SMS on iphonse sdk?

My questions are (in the context of a non-jailbreak phone) -

  1. Is it possible to access messages from the SMS inbox AFTER explicit user permission in the app?

  2. Is it possible to ask the user to grant access to SMS messages from select users (listed), from within the app

  3. Is there some workaround to getting my app to read these messages from select users, with user permission from within the app?

Thanks a ton! Max

Answer

rickerbh picture rickerbh · Nov 26, 2012

Your understanding of items 1-5 is correct.

To answer your questions:

  1. No. There is no API for asking the user for permission to access their SMS, and no public API/approved methods to access the SMS.
  2. No.
  3. No.

Sorry to be the bearer of bad news.