AJAX in background

Discussion and feedback on Construct 2

Post » Fri Feb 10, 2017 9:40 pm

Guys, hi everyone!

Does anyone know any way to keep app send and recieve AJAX requests to-from server (posting and geting data from SQL by php-scripts) while app is minimized or in background?
Tried to use cordova-powermanager plugin, maded by cranberry, but it's a piese of shi... and don't work =(
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Sat Feb 11, 2017 4:11 pm

up!
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Sat Feb 11, 2017 7:08 pm

Execution is suspended when the app is in the background. Not much you can do about that...

You can have it ask for data when it resumes.

Ashley responded to someone with a similar issue about multiplayer host shutting down when minimised. He is hoping Google provides a method to keep critical things running, and asked people to add comments to his bug report. The only work-a-round he knew of was to have audio playing - that keeps the app running.

https://www.scirra.com/forum/viewtopic.php?f=151&t=184285&p=1087072&hilit=suspend+minimized#p1087072
B
94
S
33
G
20
Posts: 438
Reputation: 17,615

Post » Wed Feb 15, 2017 3:38 pm

nope,it's not helping. music playing,yes.but ajax still suspended,when app is in background. =(
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694

Post » Wed Feb 15, 2017 3:40 pm

IN FEW MONTH AGO I USED CORDOVA-LOCAL-notification plugin in project and in intelXDK exported project, and notifications was pushed,when app is in background. but now-it's not working =(((
even if i set send local not.every tick
The whole life is in the movement.Stopped - fell asleep to hell...
B
14
S
3
G
1
Posts: 122
Reputation: 1,694


Return to Construct 2 General

Who is online

Users browsing this forum: megatronx, Yahoo [Bot] and 2 guests