I’ve got a pure Java CBL database running on my Mac and I’m able to add/remove docs from it. I have Sync Gateway running on a VM in the cloud. When I run the code on my Mac to start the sync function, it syncs all documents which is great. However, when I add another document the sync does not detect the change. It just sits at WARNING: Sync: [fireTrigger()] => WAITING_FOR_CHANGES. If I stop the Java process and restart it, the sync runs and sends my document updates to the server but again does not pick up new changes while its running. I have continuous set to true. What am I missing? Manager manager = new Manager(new JavaContext(), Manager.DEFAULT_OPTIONS); URL sgUrl = new URL(syncGatewayUrl); Authenticator auth = new BasicAuthenticator(username, password); Database db = manager.getDatabase(dbString); Replication push = db.createPushReplication(sgUrl); push.setContinuous(true); push.setAuthenticator(auth); push.start();
Why isn’t it detecting new documents were added while the process is running?