How do I get the screen to sleep when not touched

I have made an app that uses vuforia and I need it to sleep or dim if the screen isn’t tapped after say 30 seconds. I have tired the solution in this documentation but nothing seems to be working - Unity - Scripting API: Screen.sleepTimeout.

Does anyone know how to do it?

I’ve got the same problem, did you found a solution ?