giandonatoinverso / PHP-Dynamic-Qr-code

PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
MIT License
269 stars 77 forks source link

Vcard - the function of the person does not appear #46

Closed garffi closed 1 year ago

garffi commented 1 year ago

Hello,

Already, thank you for your application which is very complete. I'm looking to use it to create VCARDs.

It works well, but when you fill in the "role" field, the function of the person does not appear with a phone qrcode scanner.

I tested with my app in production and yours with a test but the result is the same.

I specify that I am French, perhaps that has an impact on the creation of the contact.

Thanking you, Best regards

giandonatoinverso commented 1 year ago

Hello depends on the version of the VCard standard used by the reader.

The VCard standard used by my program is 4.0, used by the https://github.com/pH-7/QRCode-Generator-PHP-Class library to build the standardized Vcard text.

Maybe the player you are using has another standard or has different display parameters and does not show you the "role".

By analyzing the source code of the library just mentioned and the code fragment where the creation of the VCard takes place, you will see that the text is created in the correct way. So the "role" is stored but it is a display problem. If you want I invite you to collaborate to solve it. Thank you