Hi people \o
I'm currently working on syncing google contacts to FxOS device.
I made a privileged application, available in this repo [1] that
consumes the Google Contact API.
It tries to follow these architectural recommandations from
Francisco in [2].
At the moment, the sync process is manual. You need to click the
"import" button to launch it. Making it recurrent is tracked in [3].
Edges are still quite rough, and you'll get NO visual feeback on how
things are going :-) The WebIDE will give you some logs, which might
or might not be of any help.
Also, the CSS probably needs some love. These things will be
improved by [4].
There is no integration with the contact app at the moment. Some
ideas have been given to me by Francisco in [1], but nothing
implemented yet.
Most importantly: at the moment, it keeps your contact in
sync with google in a one-way fashion, ignoring any modification you
make locally. (you've been warned! On the other hand, it does not
touch your google account, so it shouldn't screw anything there).
I have started to think about 2-ways sync, and the results of my
thought are captured in [5].
I'm very interested in having
feebacks about this algorithm! Any pair of eyes that is not
mine will be welcome: I might have forgotten some situations or
cases, and you might have a simpler idea :-) Fernando and Francisco,
could you tell me what you think about it?
About compatibility: it works in 2.5+ with webcomponents activated.
I might work it 2.2 if you activate them with webIDE, but AFAIK 2.2
does not have the manifest permission for wc, so I won't be able to
submit this app in the marketplace for this version anyway. It works
perfectly well in the simulator.
Testers, feedbacks and any other contributions are welcome. Thanks!
[1]
https://github.com/Phoxygen/fxos-google-contacts-sync
[2]
https://bugzilla.mozilla.org/show_bug.cgi?id=859306#c122 (this
one is about CardDAV sync, but I believe it also applies for any
contact sync app)
[3]
https://github.com/Phoxygen/fxos-google-contacts-sync/issues/10
[4]
https://github.com/Phoxygen/fxos-google-contacts-sync/issues/13
[5]
https://github.com/Phoxygen/fxos-google-contacts-sync/issues/19
Augustin Trancart
Phoxygen
PS: I haven't started CardDAV sync yet,
but that's definitely something I want to do in the future!