How to send Sms in iphone programatically?

Leave a Comment
Send SMS in iphone using ios programming. .
              You can send sms from your iphone using programming . This is also very simple way to send sms .
For sending sms you need messageui framwork. you have to write this code at your desired place in your programming.

[[UIApplication sharedApplication] openURL:[NSURLURLWithString:@"sms:+911122334455"]];

Using this code you can send sms on 1122334455 mobile no. but see in code i wrote sms keyword for sending sms and if you will write tel than it will be used for phone call.

Issue with sms sending:
Now when you will write this code actually you will see sending sms screen but problem is you can not autosend sms from your application. you must press send button in application . Before few years Apple allowed autosend sms but anyone can design app like that sms will be send automatically fron his application and for it user should pay for it. So Apple completely stopped that facility. Noe you have only two options to send sms.
1] use web service
2]push notification

Push notification facility is available in only ios devices so you are restricted to send sms on only ios devices because you need app which can read notification from installed app. So web service is the last thing to send sms automatic but you should pay for web service..Because Nothing is free Today....


If you want any help in ios programming than just leave comment with email id. I have sample code and i will send you that code .
                                                                                                                  Devang Patel
                                                                                                                  ios Developer        
  

0 comments:

Post a Comment