Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalDAV Sync #120

Closed
cbix opened this issue May 10, 2012 · 16 comments
Closed

CalDAV Sync #120

cbix opened this issue May 10, 2012 · 16 comments
Labels
secondary Trivial or impactful, this feature is NOT a priority

Comments

@cbix
Copy link

cbix commented May 10, 2012

CalDAV synchronization of notes/todos would be an awesome feature. CalDAV works with VEVENT/VTODO standards so we need a parser first…

@spacecowboy
Copy link
Owner

That could be interesting yes. If used for Google Calendar I guess it would conflict with GTasks. Have no idea how they integrate that in the calendar. But it would be an interesting replacement.

The relevant code is located at https://github.com/spacecowboy/NotePad/tree/master/src/com/nononsenseapps/notepad/sync
where all the code for Google's API is somewhat separated.

@cbix
Copy link
Author

cbix commented May 11, 2012

It should be possible to provide multiple Sync Adapters, so the user may setup 2 GTask and 3 CalDAV accounts and still gets everything synchronized. Maybe later we can also implement the Tomboy web API into another adapter for synchronizing notes with Snowy, Ubuntu One etc...

@nononsense
Copy link

Implementing this (Export to and Import from MS Outlook) will give option to people who want to backup ONLY in their laptop and not the cloud, for example for security reason. They should be able to chose what the sync icon will trigger in the setting menu - whether it sync with google task in the cloud, or txt file(s) inside the same mobile phone, or MS Outlook in the laptop, etc.

@nodiscc
Copy link

nodiscc commented May 7, 2013

If used for Google Calendar I guess it would conflict with GTasks

For your information, Google has shut down public CalDAV access (http://googleblog.blogspot.de/2013/03/a-second-spring-of-cleaning.html) so this shouldn't be a problem anymore.

CalDAV is a serious candidate for a google sync alternative (issue #183)

@spacecowboy
Copy link
Owner

I have begun preliminary work on a dropbox alternative. As a natural side effect, export/import to file will be available as well.

@nodiscc
Copy link

nodiscc commented May 8, 2013

@spacecowboy good to hear you are working on it. Will this be a plain text export feature (issue #184 - write-only) or a text file backend (issue #220 - read/write from text files?).

Asking this because I (and other people) am using ownCloud which is a personal cloud storage solution. There are 2 supported backends for notes/tasks in ownCloud, namely text files and CalDAV. A write-only text file backend will not allow synchronisation from owncloud.

Sticking to a Dropbox-only export solution will not solve privacy/security issues.

Thanks for your work on this app 👍

@spacecowboy
Copy link
Owner

Nothing's been implemented yet but the way I am envisioning it is a read-write solution. I have mainly thought about the dropbox case but it's just files so the same goes for files on the sdcard. Anyway, the idea is that lists are saved as folders and notes are saved as .txt files in the folders.

Does ownCloud offer you a way to sync any files on your Android device?

@nodiscc
Copy link

nodiscc commented May 8, 2013

Does ownCloud offer you a way to sync any files on your Android device?

Yes basically owncloud file sync works just as dropbox, it allows you to select files to keep in sync between android and the server. Owncloud's notes component just stores notes as txt files in the Notes subdirectory.

You can only sync files/dirs that are within the app's data directory, so it's necessary to have the ability to select NotePad's storage directory.

https://play.google.com/store/apps/details?id=com.owncloud.android

@spacecowboy
Copy link
Owner

You can't store files in another apps data dir without root so being able
to select the location won't help you. both apps would need to be able to
select the location.

for local files, they will be stored in the sdcard location

/Jonas
On May 9, 2013 1:37 AM, "nodiscc" [email protected] wrote:

Does ownCloud offer you a way to sync any files on your Android device?

Yes basically owncloud file sync works just as dropbox, it allows you to
select files to keep in sync between android and the server. Owncloud's notes
component https://github.com/owncloud/notes/ just stores notes as txt
files in the Notes subdirectory.

You can only sync files/dirs that are within the app's data directory, so
it's necessary to have the ability to select NotePad's storage directory.

https://lh4.ggpht.com/eKMJ8xdNan-rbacPJy1Dmj5yeot9uFa7Q-McfowcDclVrIAKu0LnJfQcAGkGRmKWyAhttps://lh4.ggpht.com/K9rDRfcWaujH0aQUf_X_FlO8Thjlhp7GJh2WOZmeTKSjngBenUyDDKXI0oG9iT_Hyo4

https://play.google.com/store/apps/details?id=com.owncloud.android


Reply to this email directly or view it on GitHubhttps://github.com//issues/120#issuecomment-17640917
.

@nodiscc
Copy link

nodiscc commented May 15, 2013

Mmh maybe saying "data" directory is inaccurate. Owncloud app stores synced files in /sdcard/owncloud/account_name/. I can create files there without root access from any other app. It's not in the /data/ directory if you mean this.

@spacecowboy
Copy link
Owner

Ah, then I misinterpreted you. There would be no problem saving files anywhere in the sdcard dir.

@spacecowboy
Copy link
Owner

@nodiscc Thanks for the tip about sendtosd. I am even more committed to implement a filesync now because of Bittorrent Sync which is another dropbox based alternative like ownCloud.

@dschuermann
Copy link

To integrate with Marten Gadja's Caldav-sync apps you could implement the tasks provider: https://github.com/dmfs/task-provider

It is used by his tasks app: https://github.com/dmfs/tasks

@spacecowboy
Copy link
Owner

SD-card sync is implemented. See https://github.com/spacecowboy/NotePad/releases/tag/5.3-beta

@spacecowboy spacecowboy reopened this Jul 23, 2015
@spacecowboy spacecowboy changed the title VTODO/CalDAV Sync CalDAV Sync Jul 23, 2015
@CampelloManuel CampelloManuel reopened this Jan 6, 2023
@CampelloManuel
Copy link
Collaborator

CampelloManuel commented Jan 11, 2023

I will download some calendar apps from f-droid and see what we can do to implement some sort of calendar sync with the available technology

Notes to self:

A full example

Then it's just a matter of choosing how to implement it

@CampelloManuel CampelloManuel added the secondary Trivial or impactful, this feature is NOT a priority label Jan 11, 2023
@CampelloManuel
Copy link
Collaborator

CampelloManuel commented Jan 11, 2024

I found https://manual.davx5.com/introduction.html which explains how we should setup CalDAV in the app.

Basically we need to interface with the android calendar provider, and then apps like "DAVx5" ( https://f-droid.org/it/packages/at.bitfire.davdroid/ ) will synchronize the android calendar to a server.

Since an interface with the android calendar provider is already tracked in #513 this issue is outdated

@CampelloManuel CampelloManuel closed this as not planned Won't fix, can't repro, duplicate, stale Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
secondary Trivial or impactful, this feature is NOT a priority
Projects
None yet
Development

No branches or pull requests

6 participants