简体   繁体   中英

reading / parsing SMS from inbox WITH user permission IOS

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, eg) 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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM