Reading SMS user settings for iPhone - 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.

Related

iPhone url scheme with content body to SMS

I'm a Java/Web developer and I don't know anything about iPhone applications.
I did search on the Internet and the following steps are what I think people suggested but I want to confirm.
I would like to know if the following steps will allow me to send a content body to SMS messages when a user clicks on a link on a web page.
Build an iPhone app that takes content body and receiver phone number.
Make the visitors to my webpage download the iPhone app in #1 (using javascript to check if s/he already has it and a custom url scheme to open the iPhone version of "PlayStore")
The visitor installs the app.
Call the iPhone app in #1 using a custom URL scheme, from a link on a web page. This link contains the phone number of the receiver and a content body
The iPhone app in #1 then opens the native SMS app in iPhone, this time with a body.
Is this
1. possible ?
2. the right way to do ?
EDIT :
To make things clearer, what I need are...
It shouldn't be the web server that sends the SMS. The client who gave us the job does not want to pay for that. The client wants each visitor send their own SMS and pay for it.
I made a mistake. The phone number of the receiver should be empty. Only the content body is pre populated. So if I clicked on the "send SMS to my friends" link(on a webpage), it opens the native SMS application.(at least, this is how it works on android devices currently). And then the visitor would type in or select the phone number of the receiver from the contacts on his device.
No, you cannot open the SMS app with a message body. The only way to send it is by using MFMessageComposeViewController (iOS 5.0+) as shown in this page. If you need to support earlier versions, you are out of luck.
I'm not sure that Javascript can "check" that the device can run a url scheme either (I'm almost certain it can't check what apps are installed), but I'm not an expert at that kind of stuff.
As far as you are launching your application with some data using Custom URL Schemes this might help you calling your app with some parameters
http://www.idev101.com/code/Objective-C/custom_url_schemes.html
For step #5 its not possible
Short Answers:
No.
No. The "right" version would be to send the SMS from your webserver, using something like NowSMS.

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.

How I verify that user installed an iPhone app?

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.

auto text messaging syncing

What I want this App to be able to do, is to be able to allow the individual copy all the text messages on his/ her phone and then send them to their profile on the website that I am creating. Is this possible ?
If you mean the user copying from the SMS app to your app via cut and paste yes. But I think you mean can your app programmatically grab all of someone's text messages and the answer to that is no.

iPhone: How to Programmatically Respond to SMS Messages

After a review of the iPhone SDK documentation, I have not yet found a way for an application to be written such that it can programmatically process the content of an incoming SMS message within the iPhone platform. The idea would be for such an application to be running in the background and based on specifically formatted SMS messages would be able to take specific actions.
Does anybody know if this is possible with an iPhone SDK application and if so, provide a pointer to information about how this can be done?
Unfortunately, you cannot intercept - or be notified of - incoming SMS messages with the iPhone SDK.
One possible alternative, is to register a custom URL scheme that launches your application when a url with that scheme is embedded in the sms message and the user cicks on it.
to set a custom url scheme, you must implement both the CFBundleURLSchemes and CFBundleURLName keys in your application's info.plist.
In your Application's delegate, you can then implement the application:handleOpenURL: method to get any paramaters that were passed to your App from the url in the SMS message.
I believe that currently the SDK doesn't allow for background apps (except for apple ones).
BREW and J2ME had (and probably still have) ways to launch your app via specially formatted SMS, which may be what the Jeff is referring to.
Apple does have the upcoming Push Server which will allow you to send the user an alert which will give them the option of launching your app, but you cannot launch your app for them.
Unfortunately just registering an URL scheme dosn't help you at all, because the SMS app makes "http://" urls clickable only...
You can use CoreTelephony framework.But you must user some private api.And I have some demo code for this. https://github.com/edison0951/AppNotifyBySMSDemo