DecSyncCC icon indicating copy to clipboard operation
DecSyncCC copied to clipboard

What is this App doing, how is it working?

Open lrj0 opened this issue 6 years ago • 4 comments

Hello,

I'm using Syncthing and found your app on f-droid for sync of calender entries and contacts. There is no description about the workflow of the app, what is happening there? A folder is created, with subdirectories info, new-entries and stored entries. One of the files only contains: "["2019-03-01T10:13:16","name","AdreddCollention1"]

I don't see any contacts or calender entries. Do I have to do something to get it work?

Do I have to create contacts and calender entries in the App? There is just a way to create a list nothing else.

lrj0 avatar Mar 08 '19 21:03 lrj0

You can create contacts and calendar events using normal Android apps. For example, when you create a contact in the default contacts application, you can select a DecSync collection to store it. (You can also import contacts from a .vcf file.) Then, if you sync the DecSync directory with another device, the contacts will be synced as well, if a suitable app is installed on that device as well.

39aldo39 avatar Mar 08 '19 22:03 39aldo39

@lrj0 1 Create a contact collection in the decsync app and leave it checked. 2 Then in your contacts app change the default location to that collection. 3 Use syncthing or another way to sync the DecSync directory which will now contain your contacts, calendars etc

charsi avatar May 14 '19 01:05 charsi

And how one should configure DecSyncCC, Evolution-DecSync and Syncthing to properly synchronise contacts between Android phone and a computer?

I've configured DecSyncCC on my phone and I synced its DecSync folder with my computer via Syncthing. Evolution-DecSync is installed & configured on my computer.
Unfortunately, when I add a new contact on my mobile to DecSyncCC then it doesn't appear in Evolution and after while it's deleted from my phone. It looks like Evolution-DecSync overwrites changes made by my phone.

For testing purposes:

  • I've enabled watch for changes in Syncthing on my phone
  • set Syncthing rescan interval on my computer to 1 minute
  • configured Evolution-DecSync to refresh the contact list every 1 minute

Interestingly enough, when I add a new contact to Evolution and files sync, when I check Entries count for my contact collection in DecSyncCC, then it will show:

Android entries: 0
Processed entries: 0
DeSync entires: 1

When I disable and enable that collection in DecSyncCC then values change to:

Android entries: 1
Processed entries: 1
DeSync entires: 1

and the new contact appears in the Contacts app on my phone.

kowalcj0 avatar May 21 '19 18:05 kowalcj0

Thanks for the detailed report. It looks like you have configured everything correctly, as the changes from Evolution are sent to Android.

To further investigate, could you do the following:

  • Add a new contact to Evolution and sync the files (so you get the 0, 0, 1 counts). Then, on your Android device, go to Settings → Accounts → Your DecSync Contacts account and then refresh. Does the syncing work now? The Android client uses the built-in Android accounts to synchronize between the Android contacts and the DecSync ones.
  • Add a new contact to Android, sync the files and refresh in Evolution. Then, check the files in the new-entries/appId/resources directory (for all appIds). What is in there for the Android client, and what for Evolution? I would create a new collection for this, then there will be just a single contact. It is very strange that the contact gets removed, that definitely shouldn't happen.

39aldo39 avatar May 23 '19 14:05 39aldo39