I have created a macro to make flashlight 'ON' by shaking the phone. and in constraints, I have put the condition "while the screen is off" but it doesn't work. Any clues on how it should work while the screen is off? and also another one to flip the phone to make it silent. This and the above work while the screen is on but don't work while the screen is off.
P.S I am using Galaxy S7 and Oreo.
P.S I am using Galaxy S7 and Oreo.