jberkel / sms-backup-plus

Backup Android SMS, MMS and call log to Gmail / Gcal / IMAP
https://play.google.com/store/apps/details?id=com.zegoggles.smssync
Apache License 2.0
1.79k stars 497 forks source link

Calls not appearing in calendar #1002

Open mdimjasevic opened 4 years ago

mdimjasevic commented 4 years ago

I am using a CalDAV calendar. Please let me know if this is not supported or if I should be using something else. Note this is not a Google calendar.

Expected behaviour

I would expect each made call to appear in a calendar of choice when the Calendar Sync feature of call backups is enabled.

Actual behaviour

There is not a single call recorded in the selected calendar.

Steps to reproduce the behaviour

  1. Go to: Advanced Settings -> Backup settings -> Call log settings. Enable Calendar sync.
  2. Provide a calendar to be used for call logs.
  3. Make a call.
  4. Make a backup with the application.
  5. Check the calendar and observe the calls converted to events.

Please specify the following:

Android 9 / LineageOS 15

Sony Xperia XA2

1.5.11 from F-Droid

The default Android Open Source Project messaging app

kurahaupo commented 4 years ago

The short answer is "probably not".

SMS Backup+ uses the Android calendar API, so if your device can be configured to connect to a non-Google calendar underneath that API (so that it's accessible to any calendar app that uses the Android API), then yes; otherwise no.

I note that Sony is, shall we say, not known for being encouraging of software diversity, so I would err on the side of guessing no.

kurahaupo commented 4 years ago

Just to clarify: I'm not the principal developer; for the definitive word wait for @jberkel .

Specifically it uses android.content.ContentResolver API with the android.provider.CalendarContract.Calendars.* and android.provider.CalendarContract.Events.* parameter definitions.

kurahaupo commented 4 years ago

You could consider running a GoogleCalendar/CalDAV sync separately from SMS Backup+; you might find https://www.maketecheasier.com/sync-caldav-carddav-android/ useful.

mdimjasevic commented 4 years ago

The short answer is "probably not".

@kurahaupo , to what is this an answer?

Synchronising a CalDAV calendar to another device is, as far as I can tell, a separate topic (though I do use DAVx5 and OpenTasks, just like it is recommended in the link you provided in another comment).

I am not sure how to interpret your comments. Are these notes for whomever might be adding support for synchronizing call logs to a non-Google calendar?

kurahaupo commented 4 years ago

The short answer is "probably not".

to what is this an answer?

I was responding to:

Please let me know if this is not supported

My guess is that directly synchronizing to a CalDAV calendar isn't likely to be high on @jberkel 's list of development priorities, and I don't have the testing facilities to take on development work right now either.

However if someone else writes a patch, I'm sure it would be welcome.