Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-80

Android specific replication using WorkManager

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Critical
    • 3.1.0
    • 2.8.1
    • Kotlin-Android
    • Security Level: Public
    • None
    • JAK 88, JAK 89, JAK 90, JAK 97, JAK 98
    • 5

    Description

      In order to avoid Android's draconian battery saving tactics, replication should be scheduled using Android's WorkManager.

      Android devs should be discouraged from using continuous replication, ever, because it won't work.

      The intention of continuous replication is that the local DB is kept up-to-date, "in the background", without user intervention. That kind of describes a WorkManager task.

      I can see very specific uses of continuous integration, while an app is in the foreground. I think, for instance, of apps supporting ticket-takers or something like that. In those cases you won't need a foreground service.

      When the app is backgrounded, I think the WorkManager will provide the behavior that most devs expect.

      Attachments

        Issue Links

          Activity

            People

              blake.meike Blake Meike
              blake.meike Blake Meike
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty