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"));
For Android: Open your contact card in the Contacts app (or launch the Phone app and tap the Contacts app near the right side of the screen), then tap the three-dot menu button in the top-right corner of the screen. Tap Share, then pick your messaging application of choice.
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.
Check possible answers for your questions here:
Send location information or vCard through SMS on iPhone
Creating a vCard in iPhone
how can I send vCard through sms message in code?
https://github.com/aussiegeek/AddressBookVcardImport
http://www.developerfeed.com/objectivec/howto/how-generated-vcard-using-objectivec-iphone
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With