Reputation: 827
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.
Is this
1. possible ?
2. the right way to do ?
EDIT :
To make things clearer, what I need are...
Upvotes: 2
Views: 4162
Reputation: 3749
Short Answers:
Upvotes: 0
Reputation: 1242
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
Upvotes: 1
Reputation: 33423
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.
Upvotes: 2