How do I send the app to background?

Get help using Construct 2

Post » Mon Nov 09, 2015 6:49 pm

Hi,

Maybe this is a very basic question but I've been looking for the answer and I dont find a way to do it.

How can I send the app to background when I click in a sprite?

I´m using the: browser -> close; but this exit the app, so I need to do it like: on clicked object -> go to background;
The app needs to exit like when we click the phone home button.
B
5
Posts: 16
Reputation: 257

Post » Mon Nov 09, 2015 7:08 pm

Although it's probably possible in some way, as far as I know apps created with Construct2 don't run in the background, so I wonder what use it would be..
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 » Mon Nov 09, 2015 8:31 pm

I need to trigger an event: "on local notification arrived -> turn on the camera flash light".

If I exit the game with: browser->close, this event will not run, but if I click the button home (send the app to background) the event to turn the flash light on works, when the notifications arrives.
B
5
Posts: 16
Reputation: 257

Post » Tue Nov 10, 2015 2:18 pm

@LittleStain do you have any hint about how can I do it?
B
5
Posts: 16
Reputation: 257

Post » Tue Nov 10, 2015 2:53 pm

You seem to be using a plugin (probably one of the cordova ones) to do the things you say..
It might be this plugin has a function to get to the actions of the home-button from the game ..
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 » Tue Nov 10, 2015 3:38 pm

Yes I´m using cordova plugin, but I think it dont have that action...
B
5
Posts: 16
Reputation: 257

Post » Tue Nov 10, 2015 7:00 pm

I lookup all the Cranberry plugins but I have not found any plugin with this action.

Maybe @Cranberrygame could help in this matter! ;)
B
5
Posts: 16
Reputation: 257

Post » Fri Nov 13, 2015 11:19 am

bump
B
5
Posts: 16
Reputation: 257

Post » Sun Nov 15, 2015 4:28 am

You can consider my product:
background-mode-plugin-tools_t150855
Providence University, lecturer.

Tatung University, lecturer.



Consultant per question: USD$15 / time

Consultant by month: USD$300 / month

Customized project: USD$2500 / capx
B
78
S
18
G
4
Posts: 197
Reputation: 7,828


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Yahoo [Bot] and 20 guests