I'm looking to access the SMS inbox from within an app. This is what I currently understand -
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?
The app must not be running in the background due to privacy reasons
An application cannot access another application's data as each app runs within its sandbox
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
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) -
Is it possible to access messages from the SMS inbox AFTER explicit user permission in the app?
Is it possible to ask the user to grant access to SMS messages from select users (listed), from within the app
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
To check your app permissions, go to Settings —> Privacy. A list of different categories, such as Location Tracking, Bluetooth, Contacts, Microphone, Photos, and more will appear. You can click on each specific category to see which apps have access to that data. You can grant or revoke permissions as you see fit.
No, there is no way to read SMS messages.
To set the app's permission on a device or emulator instance, choose Settings > Apps > SMS Messaging > Permissions, and turn on the SMS permission for the app.
Your understanding of items 1-5 is correct.
To answer your questions:
Sorry to be the bearer of bad news.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With