Skip to content

Contacts not showing in the messages window #277

Closed

Description

@pedrofleck

I was using an older git version since I'm using Gnome 3.30, I was having a problem that the only contacts shown in the SMS window was the ones that I received SMS, then I decided to update to the Shell Extensions version (uninstalled and installed again). Now, I can't configure my devices (they don't show up in configurations (pairing again won't fix) and no contacts at all show when I try to send a SMS. Sending ping, SMS to a number, browsing files and other stuff works normally.

Activity

  1. andyholmes commented on Oct 28, 2018

    @andyholmes
    Collaborator

    Hmm, it's tricky because a lot of things changed during that period that were not at all backwards or forwards compatible.

    In particular, I moved the cached contacts file on purpose, because GData (direct to Google) support was removed and the file format changed to support the upcoming Android contacts sync plugin. This was probably when your contacts disappeared.

    If you're okay starting from scratch, I'd recommend you uninstall and wipe everything listed in File Locations. At this point you might as well pull from master since it's quite close to v14, and you could even grab a build of the Android app from the new nightly build server and test out some of the experimental stuff like SMS history and contacts sync.

    In any case, if a full wipe doesn't fix this let me know because the problem is probably deeper (maybe in the libfolks wrapper).

  2. pedrofleck commented on Nov 2, 2018

    @pedrofleck
    Author

    My devices are showing in the config window now! But I still can't see any contact. I went conservative with Play Store and v13 because I need to be sure it's working since I use it for productivity. Looking forward to v14 final version though.

  3. andyholmes commented on Nov 2, 2018

    @andyholmes
    Collaborator

    Sound good, there are still some changes happening in Android before SMS/Contacts lands and we might have to make some changes afterwards to make it work.

    If you have your contacts in Google, and have the dependencies for Desktop Contacts installed, you will still need to have the account registered in Gnome Online Accounts for that to work. I'll try and remember to clarify that in the Wiki.

    v14 was uploaded with a single fix that was affecting a lot of people, but all of this work is almost ready to be released as v15. We just need to clean up a few things since it's a big release in a lot of ways.

  4. pedrofleck commented on Nov 10, 2018

    @pedrofleck
    Author

    I guess I'm using v14 now (nothing happens when I click "about") and the new SMS history is great! I still can't send a message to a new contact (only number), but if the person already sent a message, it shows up (and that's enough functionality for me, although I know it's not the desired behaviour). I have my contacts in Google, the dependencies and the account in Gnome settings, gnome-contacts app shows all my contacts by the way. It's weird that this is happening since the names and pictures appear correctly if I already exchanged messages with the person.

  5. andyholmes commented on Nov 10, 2018

    @andyholmes
    Collaborator

    That's a bit odd, but I may know what is causing this issue. One thing that is difficult with KDE Connect is that a device won't report what plugins it has loaded, it will only report what capabilities it would support if all its plugins were loaded. Hmm, that's confusing; in other words it reports what "packets" it supports, but not whether it will actually do anything with them.

    So for contacts, the device has to decide whether it's going to use contacts from the desktop or contacts from the phone. The contacts plugin will be automatically loaded if the device claims it supports it, and if it is loaded that's where GSConnect will look for contacts. Here is the check:

    https://github.com/andyholmes/gnome-shell-extension-gsconnect/blob/7aae6ca13330807c9e32b1fa7b49ca7d7acc1f97/src/service/device.js#L160-L163

    Maybe that's not working on your device, or maybe something else is wrong, but what you can try is to disable that plugin in the Device Settings -> Advanced. The change will happen immediately, so all you have to do is open a new SMS window and the new source will be used. Give that a try and let me know?

  6. pedrofleck commented on Nov 10, 2018

    @pedrofleck
    Author

    I tried disabling "contacts" plugin and now any contact show up, the previously shown contacts now are just numbers. Maybe KDE Connect on the phone isn't "sending" the contacts list? I already tried to reinstall the app, it is up to date and all the permissions are granted.
    EDIT: I have a tablet synced too and even though it doesn't have a SIM card, I can open the SMS/contacts window and after enabling SMS/contacts plugins on phone and PC, all my contacts show up just fine. Definitely it is something with my phone.

  7. andyholmes commented on Nov 11, 2018

    @andyholmes
    Collaborator

    Oh okay, maybe something went wrong during the contacts sync the first time. Try this then instead:

    • Disable Contacts plugin
    • Delete ~/.cache/gsconnect/<device-id>/contacts.json
    • Enabled Contacts plugin
    • Open SMS window, select "Sync Contacts" in app-menu (the menu in the panel beside Activities)
    • Wait a few seconds, then close/open window

    If you have two devices it might be hard to tell which <device-id> is right, but you can delete both contacts.json because if the plugin is still enabled it will have that info in memory.

    If that still doesn't work, might be a problem with Unicode characters if you have non-English names. I made a few names with special characters for testing, but maybe I missed something and we can track that down in the log files.

  8. pedrofleck commented on Nov 11, 2018

    @pedrofleck
    Author

    Done, it wasn't difficult to find which device was right because the tablet folder was full of contact pictures. It didn't work again, and even the contacts that were showing disappeared. I don't think it's related with Unicode characters since I have the same Google Account and contacts on my tablet, but the non english characters are:
    ÃĄ ÃĐ Ã­ Ãģ Ãī ÃĢ Ã§
    What would happen if I copy contacts.json from the tablet folder to the phone folder? Since theoretically they're the same contacts?

  9. andyholmes commented on Nov 12, 2018

    @andyholmes
    Collaborator

    I don't think it's related with Unicode characters since I have the same Google Account and contacts on my tablet...

    That is strange, there's definitely nothing different done for tablets and phones.

    What would happen if I copy contacts.json from the tablet folder to the phone folder? Since theoretically they're the same contacts?

    Yep, that should work. The two files should be exactly the same, just make sure you have the plugin disabled for your phone when you copy the contacts.json file over. The images are absolute paths though, so they will point to your tablet's cache directory. As long as you don't delete those files this should work.

  10. andyholmes commented on Nov 14, 2018

    @andyholmes
    Collaborator

    I know you said you're using this at work, but if you're playing with the cache files, maybe you want to give something new a shot. I've been trying to find time to redo the messaging UI, but there's been a lot of bug reports lately.

    Anyways, this Zip is basically v16 (just released), only changes are a newer SMS UI and all the old, unused telephony junk has been stripped out:

    gsconnect@andyholmes.github.io.zip

    I'd now encourage you to use the latest Zip from #332 if you're interested in testing.

  11. logix2 commented on Nov 27, 2018

    @logix2

    I too am having this issue. No contacts are synchronized on my desktop. I'm currently using GSConnect v17, but this feature didn't work in previous versions either. I do have the required dependencies installed. Using Ubuntu 18.10 and Samsung Galaxy S6.

    I tried disabling the contacts plugin, deleting the contacts.json file and enabling the plugin but nothing changed.

  12. andyholmes commented on Nov 27, 2018

    @andyholmes
    Collaborator

    Are the contacts not being stored in contacts.json or are they just not showing in the messaging UI? Could you try this Zip that includes two contact related fixes?

    gsconnect@andyholmes.github.io.zip (removed, see below)

  13. added
    bugAn issue that is confirmed as a bug
    on Nov 27, 2018
  14. 11 remaining items

  15. jjaone commented on Jan 10, 2019

    @jjaone

    Contacts sync problem is still here. I am using Ubuntu 18.10 Desktop (Gnome-Shel 3.30 + GSConnect-plugin v19 in About screen) with Nokia6/Android8 in which I have KDE Connect app installed from Google Play store and no Contacts or Messaging converstaions get synced from the phone to desktop.

  16. andyholmes commented on Jan 10, 2019

    @andyholmes
    Collaborator

    Hi, can you please update to the latest release on Github, v20, using the instructions in the Wiki and see if that solves the problem?

  17. danjac commented on Jan 13, 2019

    @danjac

    Fedora 29, latest github release, KDEConnect app + Samsung Galaxy S6. Messaging conversations synced but contacts empty.

  18. andyholmes commented on Jan 14, 2019

    @andyholmes
    Collaborator

    Hi, can you confirm the Android app has contacts permissions, the contacts plugin enabled and what contacts app you are using?

    Can you also please use the Generate Support Log feature, then open the messaging window and press the [+] button to sync and post the output?

  19. added
    needs infoAn issue that needs more information
    and removed
    needs testingA contribution that needs testing
    on Jan 14, 2019
  20. removed
    bugAn issue that is confirmed as a bug
    on Mar 13, 2019
  21. andyholmes commented on Mar 13, 2019

    @andyholmes
    Collaborator

    I've removed the [bug] tag since I'm not convinced this is a bug in GSConnect, but more likely another Android vendor specific problem with contacts storage. We'll need a debug log with errors showing GSConnect making a mistake or an empty contacts packet to be sure of either.

  22. andyholmes commented on May 5, 2019

    @andyholmes
    Collaborator

    Closing since there's been no activity or logs supplied in ~4 months. Please re-open if you can still reproduce this bug and supply logs.

  23. tukusejssirs commented on Aug 30, 2019

    @tukusejssirs

    CentOS 7 AMD64
    GSConnect installed from extensions.gnome.org (v24)
    Installed folks (PackageKit and gnome-packagekit were already installed)
    All Android permissions for KDE Connect (v1.12.93) are enabled.
    I use Google Contacts.

    First I tried to enable Contacts plugin (in both Android and CentOS). Messages synced, but not the contacts.

    Then I disabled the Contacts plugin (in both Android and CentOS). Installed folks package. I was already signed into Gnome Contacts using my Google credentials. Still, the messages synced, but not the contacts.

    I tried to generate support log, but I have no idea if I did it right. Here is the output:

    # GSConnect support log:
    GSConnect Version: 24
    GSConnect Install: user
    GJS: 15205
    XDG_SESSION_TYPE: x11
    GDMSESSION: gnome
    --------------------------------------------------------------------------------
    journalctl: unrecognized option '--no-host'
    # journalctl tail:
    Aug 30 13:30:43 srvr-lnv-e531 org.gnome.Shell.Extensions.GSConnect[9932]: [/service/device.js:loadPlugin:779]: OnePlus: "loading 'contacts' plugin"
    Aug 30 13:30:43 srvr-lnv-e531 org.gnome.Shell.Extensions.GSConnect[9932]: [/service/__init__.js:JSON.load/</<:145]: Error opening file /home/ts/.cache
                                                                              JSON.load/</<@/home/ts/.local/share/gnome-shell/extensions/gsconnect@andyhol
                                                                              @/home/ts/.local/share/gnome-shell/extensions/gsconnect@andyholmes.github.io
    Aug 30 13:30:43 srvr-lnv-e531 org.gnome.Shell.Extensions.GSConnect[9932]: [/service/protocol/core.js:send:220]: OnePlus: {
                                                                                "id": 1567164643526,
                                                                                "type": "kdeconnect.contacts.request_all_uids_timestamps",
                                                                                "body": {}
                                                                              }
    Aug 30 13:30:47 srvr-lnv-e531 org.gnome.Shell.Extensions.GSConnect[9932]: [/service/device.js:unloadPlugin:814]: OnePlus: "unloading 'contacts' plugin
    Aug 30 13:30:47 srvr-lnv-e531 gjs[9932]: gsignal.c:2641: instance '0xc6cf970' has no handler with id '331814'
  24. andyholmes commented on Aug 31, 2019

    @andyholmes
    Collaborator

    Unfortunately there are no relevant errors related to GSConnect here. This just shows the contacts plugin being loaded, GSConnect requesting the contacts, you phone not sending any contacts and then the plugin being unloaded.

    I'd recommend you file an upstream report on the KDE Connect Bug Tracker. If you phone is not sending any contacts, this is likely a bug in the Android app.

    If you want to use folks, you may have to restart GNOME Shell, I'm not aware if GSConnect will detect if you install it while running.

  25. krodelabestiole commented on Apr 19, 2024

    @krodelabestiole

    same here using grapheneOS.

    unfortunalety the review log button doen't open any window or show any info. it just closes the popup :/

    is the log stored somewhere ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoAn issue that needs more information

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions