How do I make an alarm app working in background

Get help using Construct 2

Post » Thu Aug 18, 2016 9:40 am

Is there a way to create an alarm application which will not stop working on exit until i turn off the alarm while not draining battery? When i close the game (app in my situation) everything in background stops. So any idea to solve that?
B
21
S
4
G
4
Posts: 161
Reputation: 3,803

Post » Fri Aug 19, 2016 1:27 am

Closing the app is the problem ...
From the Manual
'Browser '

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.


As you can see...all events stop running when the app is invisible or in the background...

AS far as I know you cant change this...its a hard coded feature...

The only way I know of ..is to keep the app memory...
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685

Post » Sat Aug 20, 2016 11:05 am

@mystazsea what do you think about notification plugins? Have you ever used them?
B
21
S
4
G
4
Posts: 161
Reputation: 3,803

Post » Mon Aug 29, 2016 10:39 pm

no i havent used any ...
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685


Return to How do I....?

Who is online

Users browsing this forum: vendara and 5 guests