Reputation: 2621
I have implemented an iPhone QR code generator. Its works well for e-mail, URLs, text, etc. I ran into an issue when I tried to tie in vcards, though.
I used the format:
@"BEGIN:VCARD VERSION:2.1 N:Satya;Dash;;; ADR;DOM;PARCEL;HOME:;;**** Mission Street;Cuttack City;Orissa;94014;INDIA. EMAIL;INTERNET:[email protected] TEL;CELL:22-122-4567 TEL;CELL:133-156-3345 END:VCARD"
The QR code works well in my iPhone QR code reader (with an alert of some information mission, that is understood). However, an Android QR code scanner does not read it. Why?
Upvotes: 1
Views: 2274
Reputation: 35351
Your vCard should look like this:
@"BEGIN:VCARD\r\nVERSION:2.1\r\nN:Satya;Dash;;;\r\nADR;DOM;PARCEL;HOME:;;****Mission Street;Cuttack City;Orissa;94014;INDIA.\r\nEMAIL;INTERNET:[email protected]\r\nTEL;CELL:22-122-4567\r\nTEL;CELL:133-156-3345\r\nEND:VCARD"
Upvotes: 2