Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Background Data updates

Hi,

Is there a way to have my app check for updates to a Appery database automically if the app is not open and the device is online. I'd like the app to check every few minutes or so, if there is are any updates to a database witout having to upen the app.

Thanks!

Andrew

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Background Data updates

Andrew ....

Your interesting post -- begs a couple of questions - like - " and then do what with that knowledge ? " - if you find out the data has changed - what then ?

I'm positive you could use setInterval() function depending on what you want to happen with this information...

http://www.w3schools.com/jsref/met_wi...

If the app was truly off line , and closed (not running in the background) you could use a server code routine to review the data - and tnen 'push' notifications to the user's device ....

just a couple of thoughts..... knowing the end game might trigger a different direction though....

Best,

Bruce

Andrew Davidsburg
Posts: 0
Joined: Sun Aug 03, 2014 5:29 pm

Background Data updates

Thanks a lot Bruce. The problem is the setInterval function only runs until device goes to sleep. After a long weekend of trying to implement a bckgroud service, I think push notifications are the way to go. Can't seem to get that runng now either, woohoo!

Return to “Issues”