Thanks I'll try that. I just reverted back to my previous setup in the meantime.
Posts made by Flood
I was previously using Flixel 4.2, lime 2.9.1 and openfl 3.6.1 to build on Android. I was overriding the default AndroidManifest.xml file using my own custom templates folder as described here: https://player03.com/2014/08/14/template-basics. Everything worked great, my AndroidManifest's min sdk version was 9 and my target was 26.
But now after upgrading to Flixel 4.4, lime 6.3.1, and openfl 8.1.1 I'm having trouble building on Android. I got all my extensions to work but now for some reason my AndroidManifest.xml keeps getting replaced by an auto-generated one I believe gradle is making. My old version was using Ant I believe so Gradle is completely new to me.
Does anyone know how and where to edit Gradle? Any help is appreciated, thank you!
RE: How to make android sleep?
Thanks for the reply dean
Yes I originally did that by following these guides and I removed the vibration and wake lock permissions (just like you :D):
The wake lock permission does not show up when I look at the android app info but the wake lock behavior is still present. Wake lock is killing the battery super fast so I'm trying to trigger sleeping to save battery power.
How to make android sleep?
Does anyone know how to make android sleep using Haxeflixel/openfl?
I successfully removed wake-lock from the AndroidManifest.xml permissions but it didn't solve the issue. The game will stay on no matter what.
I also tried using a wake lock extension but it didn't work either. (https://github.com/HaxeExtension/extension-wake-lock)
Any help is appreciated thanks!