if you use the newest version of v-play 1.5.6 as described here you don’t have to do anything to prevent the phone from sleeping. If you use an older version you can set the NativeUtils::displaySleepEnabled property first to true and then to false in your Component.onCompleted of GameWindow and it should work (this was a bug only on Android).
Want to find out if Felgo is a good fit for your company?
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: