enesser / vCards-js

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

X-SOCIALPROFILE problem #45

Open mdevDE opened 4 years ago

mdevDE commented 4 years ago

Hi first of all thank you for sharing this package with the community.

I had a problem when I tried to import a vCard with a X-SOCIALPROFILE into macOSX address book. The Mac app was not able to understand the encoding, please see the imported result:

Bildschirmfoto 2019-10-20 um 11 46 33

Removing the encodingPrefix did the trick (line 378) - however I am not sure if this is conform to the vCard standard. formattedVCardString += 'X-SOCIALPROFILE' + ';TYPE=' + key + ':' + e(vCard.socialUrls[key]) + nl();

Could you please look into this problem?

Cheers, Michael

krokhale commented 4 years ago

Yes, seeing this on the iPhone too.

genesisemmloh commented 2 years ago

i see this fields doesnt work on android, am i correct?

lukegeaves-ordapad commented 1 year ago

As a quick fix, I am using:

            let vCardString = v.getFormattedString();
            vCardString = vCardString.replace(/SOCIALPROFILE;CHARSET=UTF-8;/gm, "SOCIALPROFILE;");
amit777 commented 8 months ago

Does this fix potentially break non-apple clients?