A sync is initiated with a call to the API rhoconnectclient doSync method:
Which demo application are you talking about, the scafolded one?
For the Scafolded application, if I remember correctly we've a periodic sync plus the button in the home page of the app.
But really, you can add a button where you want and call the doSync method or included the call in your workflow. Is up to you.
Store server demo application which they have demonstrated in documentation. I want to do auto sync of the data, as soon as i create a product it should be displayed on that heroku server
And i did not quite get what you said. i don't want to add a button for sync
And i am also trying to set/change the "poll interval" in settings.yml in the rhoconnect server app, but i am not seeing any sync happening according to the given duration.
From what has been observed by me the minimum sync duration in your settings.yml should be 30 seconds. If the value is anything less than that it doesn't trigger the sync.
The changes you need to make automatic sync work.
Change 1 : Rhomobile (Rhoconfig.txt)
Change 2 : Rhoconnect server (settings.yml)
After the above changes your rhomobile application will start autosyncing your models.