Quantcast
Channel: Mobile - Couchbase Forums
Viewing all articles
Browse latest Browse all 1117

CBL iOS addDocumentReplicationListener ListenerToken.remove fails to remove listener

$
0
0

In the CBL Swift and Objective-C SDKs, the token returned by Replicator.addDocumentReplicationListener fails to remove the listener when calling ListenerToken.remove.

If you change this line of ReplicatorTest.testDocumentReplicationEvent from the deprecated replicator.removeChangeListener(withToken: token) to token.remove(), the test fails to remove the listener.

It also doesn’t work for removing Replicator.addChangeListener either.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1117

Trending Articles