Anybody no to send sms programmatically in iOS6
.Earlier I was using core telephony method to send SMS.It's working fine up to iOS5
but on iOS6
my code is not working.
I using following code:
BOOL success = [[CTMessageCenter sharedMessageCenter] sendSMSWithText:@"Message" serviceCenter:nil toAddress:@"8800781656"];
What am I doing wrong?
Thanks in advance
I would make an educated guess that Apple has closed a loop hole in their API. They do not want applications to send SMS message in the background without the user knowledge. On some mobile network each SMS message cost money.
Hope , This will help You.