Closed hetszunyukapanyanyimonyok closed 7 months ago
Can you send an example of a non-working VCF file (anonymized)?
@Aga-C Hi! I have uploaded it in tresorit because GitHub does not support this file format if you need it I can email it or any solution that you have.
Thanks! It looks that you got JSON exported instead of VCF. It surely needs to be fixed.
The feature was originally added at https://github.com/SimpleMobileTools/Simple-Contacts/pull/998 and https://github.com/SimpleMobileTools/Simple-Commons/pull/1739 but I have no idea why the contacts were exported in JSON.
@Merkost Do you remember why it was done that way or was it just a mistake? Sorry for the ping :)
The feature was originally added at https://github.com/SimpleMobileTools/Simple-Contacts/pull/998 and https://github.com/SimpleMobileTools/Simple-Commons/pull/1739 but I have no idea why the contacts were exported in JSON.
@Merkost Do you remember why it was done that way or was it just a mistake? Sorry for the ping :)
Hi there, Json is used for app backups. It's standardized within all Simple apps. Vcf's are used for basic contract exports. The vcf format doesn't support the app's custom fields, that's why the backup is in this format.
@Merkost Hi, sorry my two cents question: Than why the manual export is in simple .vcf format and works when imported? (with hidden fields too)
@Merkost Hi, sorry my two cents question: Than why the manual export is in simple .vcf format and works when imported? (with hidden fields too)
It will work, as the hidden fields are not custom ones
Yes, this one here is an old bug from SimpleTools. I remember several opened issue threads about it (including mine) and it hasn't been tackled ever since.
Since VCF is a well-known file format, it makes sense for automatic backup exports to be in that format.
Hi, I wanted to open new issue but maybe I could mention my problem here and I will open new issue if you need me to do so. As I understand, Automatic Backup Feature should backup the contacts (whether in vcf or json format as in this discussion) when a new contact is added, right? But the Automatic Backup Feature doesn't work with me at all! No files exported (vcf or json).
What I tried but the automatic backup didn't do anything:
Device info OS: Android 14 (Samsung - One UI v6.0) App version: 1.0.1
@abdo2048 Automatic backup runs once a day.
@Aga-C Sorry, I didn't know that. I think it would be better to show this piece of info in the app, I mean a phrase should be written in Settings under BACKUPS section that indicates the backup happens one time each day. And I believe adding the flexibility of choosing when to backup (Scheduling backups) would be great too. Thank you so much.
Since VCF is a well-known file format, it makes sense for automatic backup exports to be in that format.
aggreed.
what make me wonder is that the "fix" was implemented in January, but the bug is still there in July.
Checklist
Describe the bug Trying to import one of the daily automatically backed up .vcf file. It fails every time. I have tried other days backup, does not help. If I export manually, that works as normal import. (But that is not efficient enough)
To Reproduce Steps to reproduce the behavior:
Expected behavior To able to import, automatically exported .vcf files.
Device info (please complete the following information):
Additional context So i have analyzed the manually and the automatically exported .vcf files. Their data structures are Totally different. Because the manual works I did not touch it. Than I tried to clean/the automatic backed up one/ by allowing only 1 contact (Without extra infos for example: address; email etc.) and that failed too so based on this the automatically exported files must be broken by default.