ubports / ubuntu-touch

Ubuntu Touch's issue inbox is now migrated to GitLab.
https://gitlab.com/ubports/ubuntu-touch
1.29k stars 109 forks source link

Contacts not appearing (Google Accounts) - OTA5 #926

Open ssabz opened 6 years ago

ssabz commented 6 years ago

-------- BUG-REPORT ------------------------------------------------------------

Steps to reproduce

Adding Google account, syncing contacts, never appearing, just "Import Contacts"

Expected behavior

For my contacts to be visible after import, like they were in 15.04 lts

Actual behavior

I added my Google Accounts to sync my contacts, it said it's synced but they were visible for a second, but then it went back to "Import Contacts".

hummlbach commented 6 years ago

I cannot reproduce this. Stupid question: have you pushed the synchronization button in the upper right corner? But according to your report, you've done that. Have you tried to remove the account in system settings and to add it again?

ssabz commented 6 years ago

Yes, I've done both multiple times, also with my 2nd Google Account

hummlbach commented 6 years ago

Okay, what I can confirm is that, if you have some contacts tagged, only the tagged ones will show up and all untagged contacts aren't displayed. But you mean you don't see any contacts at all(?), not even a few... @mardy this seems to work on vivid... another change in qtpim we need to take care of?

hummlbach commented 6 years ago

I've updated my daily driver to xenial yesterday. While i had some problems on my test device, I can't reproduce anything anymore now.

Fuseteam commented 5 years ago

I have the same bug on vegetahd but in ota6 some contacts did appear.......after some time.....somehow

Hoe do tag contacs?

LlamasJM commented 5 years ago

Same issue. OTA-6. Fairphone 2. Some contacts (from Google account) appear, some others... missing. Weird.

dnaod commented 5 years ago

I've had the same issue since OTA5 and now again on OTA7. After authenticating Google for Ubuntu to sync contacts, I can watch them being imported and the list growing, and then the whole list blanks out again. I then see the empty contact list screen again with prompts for "Import contacts from Google" and "Create a new contact by swiping up from the bottom of the screen."

Not sure if it's relevant but I have 899 contacts in Google, 5 different labels spanning a subset of those, and 11 starred.

mateosalta commented 5 years ago

confirmed, added - removed - hit the sync button, went to settings, disabled, re-enabled, removed and added accounts several times - just about any combination I could think of. on the pro5.

could only load manually via: syncevolution --import /path/to/file/allcontacts.vcf backend=evolution-contacts database=Personal after downloading the csv/vcf from the contacts.google.com website

mateosalta commented 5 years ago

Same issue. OTA-6. Fairphone 2. Some contacts (from Google account) appear, some others... missing. Weird.

I think that might be a different issue, try moving all contacts out of groups, and into the "my contacts" group

davidmattson1 commented 5 years ago

I just experienced this on my Nexus 5. Added Google account, then saw my contacts. Then they all disappeared.

thenomemac commented 5 years ago

@mateosalta are you running that manual syncevolution work around from the phone or on a local machine and side loading the contacts?

mateosalta commented 5 years ago

@thenomemac straight on the phone

dshimer commented 5 years ago

Couple of things I have noticed. After I go through the whole process of setting it up, syncing it, seeing the contacts, watching them disappear without a trace.....

If I add a contact to my now empty list, and have the default address book set to Gmail, and hit sync, the contact get pushed back to my Google contacts just fine.

If I edit any contact in Google then hit sync on my Nexus 5, the edited contacts show up and seem to be persistent.

artistechnic commented 5 years ago

After doing a bit of digging, I have found the following (and I hope this isn't rehashing old information) on my Nexus 5:

First, the sync process definitely creates and populates a contacts database at /home/phablet/.local/share/evolution/addressbook/<folder-named-with-a-hex-string>/contacts.db. I have verified that my contacts are in the contacts.db file (which appears to be a sqlite database) by viewing the file in a text editor. The data will appear in the contacts list for a short time on first sync, then disappear with the application then showing the "import contacts from Google" item. Resyncs appear to take time (making me think the app is actually syncing something), but there is no change in the displayed information.

However, after removing all tags from my 270 contacts and performing a resync, all my contacts now appear in the list.

My assumption therefore is that this is a bug in the way the app handles tags. Perhaps a filtering routine run amok?

giiba commented 5 years ago

I can confirm the tags being an issue. None of my contacts would load on ota8 even though I had opened my contacts on my laptop, selected all, and removed all tags.

Then I selected all again, tagged all with a random tag, then untagged all again, now my contacts are all there.

Weird.

Amooti73 commented 5 years ago

I just want to confirm that I had the same experience as giiba, but on OTA9 on Nexus 5.

bhdouglass commented 5 years ago

Confirmed as well with OTA-9 on OnePlus One. Removing all tags from my contacts allows them to show up in the contacts app.

Fuseteam commented 5 years ago

will check if contacts are also in /home/phablet/.local/share/evolution/addressbook/<folder-named-with-a-hex-string>/contacts.db when i have the chance

artistechnic commented 5 years ago

Upated information, which I hope will be helpful: after deleting my Google account (which was syncing contacts correctly) and re-adding it, then attempting to sync contacts on Nexus 5 OTA-9, only some of my contacts synced. None of my contacts are tagged.

As a test, I selected all my contacts and then tagged and untagged them, then re-synced Contacts, and the sync was successful and complete. I then added tags to a few individual contacts and re-synced, and those contacts still appear in my Contacts list.

So I now wonder if the issue is not actually the tags but rather some change or sync flag that is reset when a contact is edited. Since the tags are the easiest way to make quick and easily reversible bulk changes to all my contacts, I made an assumption that they were the issue based on the fact that changing or removing tags made sync work properly. However, those changes probably also set a modification flag on each contact record that could affect sync behavior. Is it possible that Contacts sync is not properly handling sync or change flags under some circumstances?

r-leclair commented 5 years ago

Nexus 5 same problem. no contacts when adding google acct. then i removed all labels, refreshed contacts. Spends time downloading; no new contacts. removed google account from device. rebooted. added account back again. this time around, the google authentication page requested only one additional permission, to 'have offline access'. clicked yes and refreshed contacts. started to download and appear. then they disappeared. just like the time before that. so i deleted all my contacts at google, after exporting them as a 'google' csv. re-imported contacts. refreshed contacts on device. all contacts appeared. lost all contact images in the process. inspection of csv file reveals links to image files on google servers. images were probably deleted when i deleted the contacts. deleted all contacts at google again. chose more > undo changes from 10 minutes ago to bring my original contacts back. refreshed contacts on phone. pictures showed up. phew.