Document no update after reactive from background (iOS)

query

#1

After my app reactive from background, the app’s document can’t get any update from server until I delete database and setup again, I just can get the latest document. I tried set the database protection level to NSDataWritingFileProtectionNone but still can’t get the update for the document.


Pull Replication Stopped/Blocked After Updating to Swift 3
Pull Replication Stopped/Blocked After Updating to Swift 3
#2

Please turn on some logging and reproduce the problem. Use the tags ChangeTracker and Sync.


#3

I get this message after my app reactive from background
ChangeTracker: CBLWebSocketChangeTracker[....]: Started... <https://...> CBLWebSocketChangeTracker[....]: Connection error #9, retrying in 512.0 sec: PSWebSocketError[3, "Output stream end encountered"] and it just stuck there…


#4

@jens @wan

Hi,

Was this issue ever resolved?

I’m encountering a similar problem (pulling documents blocked, deleting/reinstalling database solves the issue)

I also see the “Output stream end encountered” error message with the logging turned on.

For a more detailed explanation of the issue, you can see my post here: Pull Replication Stopped/Blocked After Updating to Swift 3

I’d appreciate any help you can offer.
Thanks


#5

Hi, this issue already resolved after I change the sync port url.


#6

Hi @wan,

Thanks for the reply.

So you updated the sync port url? do you mean in cbl iPad code? If so, how did you accomplish this in code?
Is it possible for you to provide an example?

Was it simply an issue going to the wrong port?

Thanks again for the info.


#7

Hello what do you mean change sync port url.
right now we are using 4984 for sync port. do we need to use somethigns else?


#8

4984 is the SG port, so that should be correct.


#9

Yes, But still sometimes my data not updating to server until i restart the application(So it will restart replication)