How do I prevent device on getting sleep mode ?

Get help using Construct 2

Post » Sat Jul 19, 2014 9:44 am

I'm using crosswalk as compiler. In my game I'm using only tilt as moving so device quickly gets in sleep mode.

They say it's done in AndroidManifest.xml with <uses-permission android:name="android.permission.WAKE_LOCK" /> code.

But there in no AndroidManifest.xml file in c2 export. So how it's done in c2 ?

Thank you.
B
7
S
1
G
1
Posts: 76
Reputation: 904

Post » Wed Dec 31, 2014 4:05 pm

Same problem
B
6
Posts: 12
Reputation: 276

Post » Mon Jan 05, 2015 6:57 pm

Do you guys use Crosswalk? Then you need an additional plugin to keep the display awake. @Cranberrygame is offering such a plugin.
Check it out here: http://shatter-box.com/wiki/phonegap-powermanagement/
Image Image iTunes: Match3 | Google Play: Match3
B
94
S
33
G
30
Posts: 1,098
Reputation: 27,643

Post » Mon Aug 17, 2015 4:54 am

@Cranberrygame
I can't find your plugin powermanagement, are you still offering it?
My Games on google play

ImageImage
B
31
S
6
G
4
Posts: 97
Reputation: 3,099

Post » Wed Aug 19, 2015 5:39 am

Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631


Return to How do I....?

Who is online

Users browsing this forum: zsoldiers and 6 guests