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.
Related
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
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.
We provide advertising capabilities to iPhone app customers, where they can advertise apps to millions of users on social network, and stand out among large number of apps in app store.
Now, to prove the ROI, we also want to provide statistics of how many users actually installed the app using our advertisements on social network.
My question is:
How do I verify whether user installed an app (when user clicks on advertisement and we take user to App Store (on mobile device) or itunes page (on PC/Mac) )
Is there a way to integrate with developer's interface to get this information?
Thanks in advance.
This is a broad question and there are some simple solutions which may require some work. Apple provides you no feedback for when an app is installed. Assuming you are storing the click of the ad on a server you will need to match to that click with something you send up when the app is opened for the first time.
(if the ad is shown in a native app on the phone) You can send up a unique key when the click happens and also send that same unique key when the app opens for the first time and match them on the server. This key can be a hashed mac address or something you save to the UIPasteboard. This requires integration on the side of your clients app because they will need to send a http request to you when the app launches.
If the social network is web based then your best bet is to match on IP address which isn't perfect but can give you a high percentage of accuracy.
I guess I'm assuming you are hosting the ads though. If you are not then you will have to rely on what the ad networks give you and many of them can provide some form of install tracking.
Well, you can always look at that persons phone and check if your app is present there :P
Just kidding.
You have some ways to get information such as these.
If you have registration in your app, you can monitor the userInfo, along with the UDID.
You can setup some webservice calls on applicationDidFinishLaunching for the first time events (using NSUserDefaults key to save the first time info) and use that.
Check out FLURRY for data analytics in your app. This is an awesome service, and allows you to track your users and how they interact with your app. I would recommend this !
Most ad networks have conversion tracking capabilities, but once you click an ad from the web and go to iTunes, all hope is lost tracking a conversion.
I guess you'd be able to track a conversion if you require the user to provide information (like an email address) before directing them to the appstore then requiring them to input that same email once the app is opened.
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.
I want to transfer data from my desktop pc/mac to my iphone app. To do so I think, that email is a good way. Workflow:
MAC sends email with data, iphone received email, application read the email (and the attached data) and works with it.
So now I search for a way to access (read only) the email inbox of the iphone via cocoa. Is there any framework to to so?
Nope, in general it's not possible for one application to access the data of another in iOS.
A few options:
Put a web server on either the desktop or iPhone and download/upload the data
Use a public web-service to (temporarily) host the data
Encode the data as a URL and send that by email. Then the user would press the link which would start your app and import the data
Allow the user to copy data over to the Documents directory of your application (iTunes file sharing). This is how Apple does it in Pages, Keynote, etc.
DropBox (which has an API available)
As I know there's no such a framework in iOS SDK 4.2. You can only send emails within the app (In-App-Mail).