How to disable sleep mode in CocoonJS app?

Get help using Construct 2

Post » Fri Jan 04, 2013 8:53 am

Hi,

I've got a serious problem with CocoonJS version of my game. Loading of this game takes so long, that screen is turning off and going to the sleep mode. Unfortunately this behavior is unacceptable for Samsung Apps, and my game is rejected.

Have you got any ideas how to disable sleep mode in CocoonJS?

B
7
S
1
G
1
Posts: 15
Reputation: 1,481

Post » Fri Jan 04, 2013 5:12 pm

How long is it taking? How big is the game?
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Thu Jan 10, 2013 2:06 pm

I have been having a similar problem with a game Iv been working on but not while loading.

The game I'm making has no touch controls except for a few buttons on the start and level select pages. The controls are just left-to-right tilt (Gamma) to control movement so after about a minute or so of game play all devises tested on go into sleep mode :(

Does anyone have any ideas or suggestions on how to fix this?
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Thu Jan 10, 2013 5:47 pm

I'm getting the same issue - first loading gets to the end and then takes forever to finish, then touch doesn't work. Strange thing is it works on all tests, this problem only happens after downloading from google play.
B
27
S
8
G
5
Posts: 429
Reputation: 6,902

Post » Sat Jan 19, 2013 6:27 pm

Wow. It seems to be a common problem. My game has an online version which you can test here http://footballtactics.eu

Apk is around 9mb.

I tried to use AppMobi instead of CocoonJS, but result is even worse. Black screen appears and nothing else. Strange.
B
7
S
1
G
1
Posts: 15
Reputation: 1,481

Post » Thu Jan 24, 2013 11:10 am

Ok, after some digging, it seems this should fix it on Android: http://developer.android.com/reference/android/view/View.html#setKeepScreenOn%28boolean%29

We've just added this, so next release should have this fixed.

Thanks for reporting!
B
9
S
4
G
4
Posts: 383
Reputation: 3,616

Post » Mon Jan 28, 2013 9:27 am

Hi Ludei,

thx for help. When do you plan next release?
B
7
S
1
G
1
Posts: 15
Reputation: 1,481

Post » Thu Jan 31, 2013 9:04 am

Hey all,

I have the same problem, did someone solve this???
Thank you :)
Free 20GB of storage - Use This Link
You must signup and install the software to receive additional 5GB
B
52
S
7
G
7
Posts: 23
Reputation: 6,580


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, Lancifer and 23 guests