View Single Post
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#335
Originally Posted by epage View Post
1. At one point I grabbed the source of the GV chrome extension (can't remember how) and it made a request for a json resource with all sorts of information. In this same request I grab the _rnr, callback numbers, and contacts. More is available but I just ignore it for now. This seems like it should be amply efficient though maybe my contact list isn't big enough.
I started off like that as well - but what forced me off that path was the fact that I have over 1000 contacts, 600 of which have phone numbers. Parsing this took so much time and CPU at every refresh, that I had to find a better way.

Also: As a result of moving to the gcontacts api and using mosquitto, I can get near instantaneous updates - just like Android.
This is particularly impressive because whenever I update contacts from gmail, those changes are propagated to qgvdial within 20 seconds or less. I don't sacrifice battery life for this either.

When I eventually get time, I plan to use these features to create the contacts sync utility.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.