I want to know is it possible to send SMS programmatically using Objective-C in iPhone using UDID means that the TO address should be an UDID of the other iPhone than phone number.
Asked
Active
Viewed 517 times
-2
-
possible duplicate of [How to programmatically send SMS on the iPhone?](http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone) – DarkDust Sep 28 '11 at 07:35
-
You should use push notification – KingofBliss Sep 28 '11 at 07:35
-
@DarkDust The question is something different – KingofBliss Sep 28 '11 at 07:37
-
1@KingofBliss: You're right, I missed the subtle *"TO address should be an UDID of the other iphone"* part. – DarkDust Sep 28 '11 at 07:39
3 Answers
1
You cannot send an SMS to another phone that you only know by UDID. An SMS always needs a phone number as address.

DarkDust
- 90,870
- 19
- 190
- 224
-
Thanks for ur response. OK by using phone number, can we able to send sms through app without any cost. – Sandy_ios Sep 28 '11 at 07:44
-
Whether the user has to pay for SMS depends on his mobile contract and is beyond your reach. If there were any generic way to send gratis SMS everyone would be doing it, right ? – DarkDust Sep 28 '11 at 07:53
0
If you know the UDID then you can send Push Notification using your own server.
THIS WILL ALLOW THE USER TO CHAT WITHIN YOUR APPLICATION.

KingofBliss
- 15,055
- 6
- 50
- 72
0
No, this is not possible.
First SMS works with phone numbers, zo not a UDID.
The User will also be charged for sending a SMS and you can only send a SMS via de MFMessageComposeViewController
. There is not way to do it in code only.

rckoenes
- 69,092
- 8
- 134
- 166