Open your MainActivity.java inside cordova project folder\platforms\android\app\src\main\java\com\XXX\XXX
then add this
import android.view.WindowManager;
last step add this:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
under super.onCreate(savedInstanceState);
also keep android:keepScreenOn="true" on your AndroidManifest.xml
Edited: Added image screenshot.