Can sent/received chat history be accessed by an IOS 10 iMessage app extension? - ios10

This is a very basic iMessage app extension question.
I'm looking to see if it's possible for an iMessage app to access the chat history and parse previously sent/received text messages. I'm aware that they are stored in an SQL database on the device, but not sure if that data is accessible from an iMessage app extension.

Absolutely not :)
This is a question of privacy, and such thing will never (in my opinion) be allowed by Apple. They clearly said that they were worried about users privacy. iMessage extension can't even access the names of participants...
The only messages you can access are :
Those sent via your iMessage extension AND that were selected by
the user.
Those that are received by your app extension AND that were sent
via your app
Meaning that even messages sent via your app won't be accessible that easily.

Related

Is it possiable to grab content from an iMessage with an iMessage app

Ive been reading through the iMessage documentation and I haven't been able to come across a clear answer to whether or not its possible for an iMessage app to be alerted to and grab specific content from a message. For example being alerted that a someone sent a message with a photo or link and then being able to grab that photo or link and place it in the iMessage app.
This is not possible. You only get access to messages sent via your application. Apple is very strict on privacy and there would be no way to ensure privacy if apps had access to message content.

Accessing iOS6 text message database

I'm currently building an iPhone app where the user selects recent text message threads, and chooses which ones to upload to a specific website.
Is it possible to write an app which accesses the users text message database? I heard that Apple is very strict about accessing SMS.
No you cannot acces the SMS message database when using the official SDK.
All apps on iOS are sandboxed and can access files outside of this sandbox, meaning you cannot access any data which is contained in other apps there sandbox. This is also why there is not file browser on iOS.

Can i access iOS mail app data?

Is there a way using which i can access attachments downloaded though the iOS Mail app? I need to access photos or other documents in my app.
No You cannot access the Mail App Data in any way. It is against the Privacy concerns of the iOS device user. However, the images in the user's iPhone Gallery can be accessed and used in the app according to your needs.
If you register your app to handle various file types, then you could select open with yourapp from within the mail application. So you could send a file from the mail application to your app. For more information see https://developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html#//apple_ref/doc/uid/TP40010411-SW1
No, You are not authorized to take any device data without user interaction that too limited access. You can create your customized mailing data with you have sent mails.

Access device messages in application

How can we read our device inbox message in our app? I have to read all messages which i have in my device message inbox.
Thanks
Are you asking how to access emails or SMS messages? If so, there's no way to do that. You don't have access to that kind of personal user data using the iOS SDK. Just think about the controversy that UDID's are causing right now, and consider what would happen if a third party app had that kind of access.
You can access messages only on jailbroken device.
Your app will most definetly not be approved for App Store.
If you're still interested, see the accepted answer on How to Make Application which Store Sent and Received Messages in iPhone

Reading SMS user settings for iPhone

I wish to access whether or not the user lets his/her iPhone preview the contents of incoming SMS messages. This toggle is found in Settings > Messages > Show Preview. Is there a way to access (read only) this information legit (I need to get the app approved)?
No. It's sandboxed along with the other core phone functionality.