https://lh4.googleusercontent.com/-Oe...
It happens because you use create service, when you need Update service http://devcenter.appery.io/documentat....
Update service doesn't work unless there is create service first right?
Kamal,
Yes you are right. The first time you run the application, you should create a new entry. Then the next time update it.
I don't think my users will open it anytime soon. I want it to install. Then create. Then run the update service in the background immediately, updating every 20 minutes...
Hi Kamal,
You can run your service with time interval:
precode
setTimeout(serviceIntanceName.execute({}), 1000);
/code/pre
serviceInstanceName - is the name of your service, 1000 means that the service will be executed after 1 second.
Where do i edit this javascript?
Hi Kamal,
You can run it on any event, for example, on page Load.
Events :
DeviceReady 1. Create
2. update
That would solve my updating problem.
But won't it create a new entry when the app is switched on agian?
Hello!
Please provide us with a public app link (http://devcenter.appery.io/documentat...) and steps to reproduce.