abigdreamer
Posts: 0
Joined: Fri Jul 12, 2013 7:20 pm

Pulling messages with a timer

How does a page constantly pull (messages info) Jobs, in the background even if the page isn't the current one on the screen? We use a rest service.

Every 45 seconds I want this page to look on the server for any new jobs. I then want the page to update itself.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Pulling messages with a timer

I don't believe a browser mobile app can do that. When you switch to another app, it will not do any pulling. You can check more how this exactly works in browsers. Same thing for PhoneGap app.. check they support this. In general, check what other folks are doing out there.

abigdreamer
Posts: 0
Joined: Fri Jul 12, 2013 7:20 pm

Pulling messages with a timer

Not switching to another app, switching to another screen. I want the APP to WAKE up and notify the driver a new job is coming in. Only if the APP is currently running and a page is loaded. Maybe a different page is loaded because the driver is trying to find directions.

He's not running a different app, he's running the FoxTow app but maybe on another page.

The screen should switch or a notice should occur telling the driver he has a new job.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Pulling messages with a timer

Don't think that's possible.. you can run stuff that's open on the current page. This has nothing to do with Appery.io -- if the browser allows that, then you can do it.

chansdad
Posts: 0
Joined: Wed Nov 20, 2013 7:40 pm

Pulling messages with a timer

for the mobile web app ( not native ) i think you should check out the meteor framework for this kind of functionality .. it is all reactive web .. no need to refresh screens or change pages ...

Return to “Issues”