I found the problem and it was hardware related.
I had the sleep timer on the phone set to 30 minutes but after changing it to 15 seconds it sleeps now. (I'm a noob -_-)
Thanks for the help!
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.
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!
Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.