I want to send a vCard via simple SMS. I do not intend to send vCard with iMessage of Email.
I've created a vCard in the format below.
BEGIN:VCARD
VERSION:3.0
N:;Sahil;;;
FN:Sahil
EMAIL;type=INTERNET;type=HOME:[email protected]
TEL;type=CELL:98-76-543210
END:VCARD
I'm trying to send the above in MFMessageComposeViewController
. When I send the message, the other device receives it as a simple SMS.
I want to know if its possible to send a vCard via normal SMS in iPhone? If yes, is there some encoding I need to follow?
Note: Just an information on how vCard is sent from a BlackBerry device
sms.setPayloadData(card.getBytes("ISO-8859-1"));
What you are trying to do is not possible. You can only send plain text via the public API of MFMessageComposeViewController. No attachments or alternate content is currently supported.