Sync not working properly with shadow bucket


I have added a shadow bucket in my couchbase server to a deal with a problem .

Below step are working fine .

  1. I can add/delete document on the shadow bucket on server and the changes are reflecting very fast in the main bucket and the couchbase mobile data base.

But the below case is not working -

  1. When a document is created or deleted on the couchbase mobile the changes are not synched or reflected in any of the bucket main or shadow.

Below is the my config file .

“log”:[“CRUD”, “CRUD+”, “HTTP”, “HTTP+”, “Access”, “Cache”, “Shadow”, “Shadow+”, “Changes”, “Changes+”],
“adminInterface”: “”,
“interface”: “”,
“databases”: {
“gyan”: {
“server”: “http://localhost:8091”,
“users”: {
“GUEST”: {
“disabled”: false,
“admin_channels”: ["*"]

	   "sync": `function(doc) {
			   "import_docs" : false


Please let me know what I am doing wrong here.