Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone | Send vCard via simple SMS

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"));

Screenshot of SMS app

like image 666
Sahil Khanna Avatar asked Dec 08 '12 06:12

Sahil Khanna


People also ask

Can you send contact card via text?

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.


2 Answers

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.

like image 176
Cocoanetics Avatar answered Oct 11 '22 21:10

Cocoanetics


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

like image 40
Lalith B Avatar answered Oct 11 '22 21:10

Lalith B