Prevent screen sleep while audio recording

I’ve made an app that uses the record audio feature and it works great… as long as the screen doesn’t fall asleep. Once the screen goes off it disconnects the audio recorder to where it doesn’t submit with the submit button and adds a blank row in the database.

I’m looking at some Wakelock JavaScript and am going to start playing with it but I figured I would see what is out there first. Thanks!

Sounds like an interesting use case. Hope someone can chime in. I’m not sure you can have a Wakelock implementation using components in Glide though.