I need help regarding Trusted Web Activity. My app works fine, but I need to add a function that keeps the screen awake without user interaction.
I am converting my website into a mobile application using Trusted Web Activity through Android Studio, but how can I keep the Trusted Web Activity screen awake while the user is using app but not interacting. Trusted Web Activity is not using an Android Activity and XML layouts, so it's not possible to use the Android Wake Lock API. How can I implement in the Trusted Web Activity or the web application?