Run Background App, NO Pause

Get help using Construct 2

Post » Wed Aug 20, 2014 9:36 pm

The answer would lie in how you count the steps in the first place, because the app won't keep running, but maybe there is a way to simulate the app running..
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 10:05 pm

but if the app is in pause is difficult to simulate something like that... because if you calculate with time, you can't know how much time the cellphone move, and how much time stoped in this range of time.
"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 11:32 pm

Browsers effectively suspend inactive tabs already, to save battery power. It's not a good idea to try to override that.

How are you planning on accessing pedometer information from HTML5? That's not a hardware feature exposed to Javascript yet as far as I know. This is one of the few things where a native app really may be more appropriate - modern phones have special hardware to measure steps in low-power mode and native tech is better for accessing that.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,351

Post » Fri Aug 22, 2014 6:18 pm

Ashley wrote:Browsers effectively suspend inactive tabs already, to save battery power. It's not a good idea to try to override that.

How are you planning on accessing pedometer information from HTML5? That's not a hardware feature exposed to Javascript yet as far as I know. This is one of the few things where a native app really may be more appropriate - modern phones have special hardware to measure steps in low-power mode and native tech is better for accessing that.



don't need to be accurated, but i need to count steps, imagine something like a "virtual pet"... but is neccesary to count steps or the movement in backgroud...
"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 25, 2014 2:42 pm

maybe creating an apk with another method and don't with crosswalk ?

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

Post » Fri Aug 29, 2014 6:42 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 » Fri Aug 29, 2014 6:57 pm

As stated above, C2 is a html5 game engine..
Html5 will allways have to be run in some sort of webbrowser like environment..
If you want to create an app like you say, you should look into creating a native app that can work without a wrapper..
There isn't another answer to your question.
You won't be able to create this app with Construct2..
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 » Fri Aug 29, 2014 7:20 pm

LittleStain wrote:As stated above, C2 is a html5 game engine..
Html5 will allways have to be run in some sort of webbrowser like environment..
If you want to create an app like you say, you should look into creating a native app that can work without a wrapper..
There isn't another answer to your question.
You won't be able to create this app with Construct2..



i see some examples, and made it one on with phonegap (html + js) and work with a cordova plugin.

But i can't add it very well with construct2. So, yes the app can run in background, but im still working in how add this plugin with C2.
"You can kill a man, but you can't kill an idea"
B
10
S
2
G
2
Posts: 25
Reputation: 1,516

Post » Fri Dec 05, 2014 8:34 pm

@Ashley maybe in a Update, we can have this complement?
"You can kill a man, but you can't kill an idea"
B
10
S
2
G
2
Posts: 25
Reputation: 1,516

Post » Fri Dec 05, 2014 11:58 pm

I don't have any plans to implement this - we're making a game engine, and I don't think games ought to stay active in the background, it will waste a lot of battery.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,351

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests