Run Background App, NO Pause

Get help using Construct 2

Post » Fri Jul 25, 2014 7:50 pm

Hi, i need help, when my app is running and the app is minimized or block the phone, the app is paused, and i want the app continue running...

I search a lot on this forum, internet, etc. And i can't found the solution....


Please Help.
"You can kill a man, but you can't kill an idea"
B
10
S
2
G
2
Posts: 25
Reputation: 1,516

Post » Mon Jul 28, 2014 2:21 pm

up
"You can kill a man, but you can't kill an idea"
B
10
S
2
G
2
Posts: 25
Reputation: 1,516

Post » Tue Jul 29, 2014 8:49 pm

up
Help, please
"You can kill a man, but you can't kill an idea"
B
10
S
2
G
2
Posts: 25
Reputation: 1,516

Post » Sun Aug 17, 2014 9:40 pm

up
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Mon Aug 18, 2014 5:01 pm

up
"You can kill a man, but you can't kill an idea"
B
10
S
2
G
2
Posts: 25
Reputation: 1,516

Post » Mon Aug 18, 2014 5:03 pm

Not sure that is possible, mate.
B
33
S
9
G
3
Posts: 493
Reputation: 4,042

Post » Wed Aug 20, 2014 9:15 pm

is it possible, but i don't know how
"You can kill a man, but you can't kill an idea"
B
10
S
2
G
2
Posts: 25
Reputation: 1,516

Post » Wed Aug 20, 2014 9:22 pm

From the manual - Browser object..

On suspended
On resumed
Triggered when the page's visibility changes, or when a mobile app is going in to the background or foreground. When invisible or in the background the app is suspended: all events stop running and all audio is muted

So it seems the app automatically stops all events..
So it's impossible to keep the app running..

What you could do is use the system time plugin, to detect at what time the app was suspended and use it again on resumed to make the events happen that would have happened during the suspended time..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Wed Aug 20, 2014 9:24 pm

Ashley has stated this is deliberate behavior. Whether this is still the case, only @Ashley could say.

See following posts:
https://www.scirra.com/forum/keep-game-running-in-background_p598652?#p598652

https://www.scirra.com/forum/quot-every-x-sec-quot-not-advancing-when-span-class-posthilit-app-s_p594850?#p594850

I think one reason is that a non-focussed app would continue to draw power from the battery, which is not a good thing.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,375
Reputation: 58,432

Post » Wed Aug 20, 2014 9:29 pm

I need the app continue running, because is a pedometer (with another functions), i need the app count walking steps.

any idea @Ashley ??
"You can kill a man, but you can't kill an idea"
B
10
S
2
G
2
Posts: 25
Reputation: 1,516

Next

Return to How do I....?

Who is online

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