I develop an IOS app with a feature, which sends SMS with a source code generated text to source code generated telephone recipients.
It works great for several months for ~hundred user, but now I got an interesting bug: when SMS UI appears, instead of the telephone number I pass to it, there is a "Buddy name" text and instead of SMS the message type is MMS. It happened on an IPhone 4 with IOS 7.
The way I use it (telephone number is an NSString):
NSArray* recipients = [NSArray arrayWithObject:telephoneNumber];
MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
if([MFMessageComposeViewController canSendText])
{
controller.body = message;
controller.recipients = recipients;
controller.messageComposeDelegate = self;
[self presentViewController:controller animated:YES completion:nil];
}
Is there any more settings, method calling (...) to avoid this strange behaviour?
Thanks very much!