Uploaded image for project: 'Couchbase Mobile'
  1. Couchbase Mobile
  2. CM-941

Improved backgrounding support for Couchbase Lite Android apps

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • feature-backlog
    • None
    • CouchbaseLite
    • None

    Description

      Backgrounding support on mobile apps varies drastically by platform. In fact, on certain platforms such as Android, the concept of “backgrounded apps” is quite nebulous/complicated.

      Couchbase Lite continuous replications will continue running until the app terminates, unless the remote system, or the application, terminates the connection.

      Android OS may kill an application without warning.

      So the recommendation we provide is that

      You should explicitly stop replication processes when they are no longer useful (for example, when they are {{suspended or idle) to avoid socket connections being closed by the OS, which may interfere with the replication process.}}

       

      There are couple of options available if apps have to be run tasks in the background

      This ticket is to track interest in building this capability into the Couchbase Lite platform and take advantage of Android lifecycle owner events

       

      Forums:

      https://github.com/couchbase/couchbase-lite-java-ce-root/issues/18

      This has been a frequently pain point by several of our customers who have to jump through hoops to align replicator life cycle with Android app life cycle

       

      Attachments

        Issue Links

          Activity

            People

              priya.rajagopal Priya Rajagopal
              priya.rajagopal Priya Rajagopal
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                PagerDuty