enesser / vCards-js

Create vCards to import contacts into Outlook, iOS, Mac OS, and Android devices from your website or application.
MIT License
430 stars 158 forks source link

Phone in version 4 is not showed correctly #64

Open michael-sem opened 2 years ago

michael-sem commented 2 years ago

I am trying example from documentation:

https://www.npmjs.com/package/vcards-js#complete-example but with version 4.

` var vCard = vCardsJS();

vCard.version = '4'
//set basic properties shown before
vCard.firstName = 'Eric';
vCard.middleName = 'J';
vCard.lastName = 'Nesser';
vCard.uid = '69531f4a-c34d-4a1e-8922-bd38a9476a53';
vCard.organization = 'ACME Corporation';

vCard.workPhone = '312-555-1212';

` In version 4, the phone output:

TEL;VALUE=uri;TYPE="voice,work":tel:312-555-1212 Which is not showed correctly

Screen Shot 2022-04-10 at 14 07 55

When i use version 3, the output is TEL;TYPE=WORK,VOICE:312-555-1212 and it works as expected

Screen Shot 2022-04-10 at 14 10 31

Am i doing something wrong or how can i use phone in version 4?

Thanks

RanaMuhammadAdnan commented 2 years ago

I am facing this same issue. when will this issue fixed? any idea.

Thanks

RanaMuhammadAdnan commented 2 years ago

@enesser can you look at this isuue. please

TJKoury commented 2 years ago

@RanaMuhammadAdnan No major platforms are v4 compatible, there’s nothing to be done.

smartdev58 commented 2 years ago

@enesser I am using latest iOS mobile and Windows 10. I have same issue in both platforms. Can you please fix this issue?