I tried to simulate a client reset by doing a “Terminate Sync”, as I understand it, this will cause a client reset event to any connected clients.
I have a breakpoint in app.syncManager.errorHandler = { [weak self] error, _ in
where the code is broadly similar to the code in the oft referenced example.
In my mobile app logs I see:
[Information] Connection[1]: Negotiated protocol version: 3
[Information] Connection[1]: Received: ERROR "sync is not enabled for this app - request logs URL: https://realm.mongodb.com/[snip]" (error_code=101, try_again=false, session_ident=0)
[Information] Connection[1]: Connection closed due to error reported by server: sync is not enabled for this app - request logs URL: https://realm.mongodb.com/[snip] (101)
[Information] Connection[1]: Allowing reconnection in 3356434 milliseconds
Is my understanding correct, that this happened because the sync wasn’t running again at the point the client tried to reconnect?
And so it will wait 1 hour to try to reconnect again? If this is correct, how might I reduce the reconnection wait time please?
Thanks