Programmatically access iMessages - iphone

I use xamarin but any answer related to this would help.
Is it possible to access iMessages on a device, with the users permission obviously.
I know I can send iMessages programmatically but have a requirement to actually access the iMessages stored on the device.

No. Apple does not provide any public API to access Messages.

Related

Get data from all app's notification in IOS

I would like to develop an IOS app to get notification such as title and body from all applications in iPhone. Is it possible to do that?
No it is not. On Android, yes this is possible. But not on Apple. They restrict permissions so that you cannot access that information as a developer.
Every application is given a sandbox, a directory it can use to store data in. If the application needs access to data on the device that isn't located in the application's sandbox, it needs to request the data through a system interface.
App can only read their notifications, other things are possible with Jailbreak.
Learn about app sandbox here

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

Getting the user's information on iOS

I am developing an iPhone App using Xcode 4.2 .
is there is a way to gather the user's information (name , phone number ,e-mail etc...) upon download from the App store ? if yes , how ?
No, you can't legally gather user's name, phone number, etc.
That would be a privacy violation, and Apple doesn't allow developers to do such things.
NO.. not with official iOS sdk.. Apple will not allow your app in app store if you do so!
You can have the app politely request the user to enter some info about themselves; but according Apple's approval guidelines, can't require that they actually do enter any identifying info.
In addition, Apple provides no identifying info to the developer, and likely can't according to their iTunes privacy policy.
That's what iOS is all about - apps running in a sandbox to keep the user safe and only sharing data with user interaction. You can only get user data by using the AddressBook.framework, which the user has to engage with to allow your app to access that information.
If you're looking for an easy way to get user data, switch to Android. ;)

How to identify user across devices on iOS?

I am working on an app where user will be buying some "credits" as in-app purchases and use them to buy some services inside the app. As user can has more then one device I need to identify him across different devices.
I understand I can create some logging (and store user accounts on my own server) but I would like to avoid this. In best case I would like to use Apple ID but I can't figure out how can I access Apple ID inside an app?
I found similar questions here but no satisfying answer. I do not believe there is no chance to access Apple ID from the app (I don't need password, just the id) as I found something like AVMetadataiTunesMetadataKeyAppleID in AVFoundation but this framework seems to be only for Mac OS X.
Any suggestion how to solve this?
Sorry. There's no way to do it without implementing your own authentication system on your own server. UDIDs are unique to each device and Apple does not give access to the iTunes user account whatsoever.
Other way is you can use facebook authentication in order to achieve that. Just connect you app with facebook api and u can keep their login address with some additional info.
Furthermore, it might be useful for your app if they can share your app with their facebook friends :p
You can identify user with help of GameKit.