Product: Couchbase Lite
Component: .net, mobile
Issue Link: CBL-6540
Affects Version(s): 3.2.1
Fix Version(s): 3.2.2Summary
Couchbase Lite .NET 3.2.1 for iOS automatically suspends replication when the app goes to the background and resumes when it returns to the foreground.
-
Intended Behavior:
- Auto suspend/resume is enabled by default.
- To disable it, set ReplicatorConfiguration.AllowReplicatingInBackground to true.
-
Issue (can be tracked through https://jira.issues.couchbase.com/browse/CBL-6540) :
- The behavior was reversed in pre-3.2.1 releases — to enable auto suspend/resume, you must set AllowReplicatingInBackground to true.
Symptoms
-
Impact on Apps Requiring Background Replication:
- Functionality break until configuration is updated.
- No updates or notifications received while in the background.
- Outdated data shown when the app is reopened.
- App may feel slow or "out of sync" after returning to the foreground because replication only resumes at that point.
Triggers
This behavior occurs by default in the affected versions (pre-3.2.1 releases).
Verification
- Check the symptoms.
- Apply the workaround to verify if the issue resolves.
Workarounds
- To enable auto suspend/resume, set ReplicatorConfiguration.AllowReplicatingInBackground to true.
Comments
0 comments
Article is closed for comments.