Astrotomic / laravel-vcard

A fluent builder class for vCard files.
MIT License
46 stars 15 forks source link

Don’t work in android #17

Open Kepsondiaz opened 1 year ago

Kepsondiaz commented 1 year ago

it works fine on ios but on android it doesn’t work

bezner commented 1 year ago

It's vCard version being used issue. The version 4 (package default) doesn't import to older versions of Android (or Contacts App I should say) whilst version 3 imports fine. Tested with the same file just changed the version number.

I had to drop the package and hack the quick in-house solution to make it work.

As a workaround I'd suggest to allow version change eg. vCard::make()->version('3.0') or anything else actually to allow downgrade the vCard file version number.

Gummibeer commented 1 year ago

The problem is that the different vCard versions have different syntax and properties. Most basic ones are the same. But if there should be v3 and other support it would need to fully implement the different standards and not just change a version number if the payload is still v4.