I am react native developer, actually I have an app which I am running in background what I want to achieve if app is running in foreground or background I want to prevent screen from auto lock . For that purpose I found one library expo-keep-awake
which awake user screen when app is running in foreground but this library is not working if app is running in background so I have decided to do code in android if app is running in background so I want to prevent auto screen lock . I am not android developer could someone please help me how to resolve this issue .
Thanks