Display is not getting of on using registerBackButtonAction


I’m using registerBackButtonAction of the platform. In case if loading data from the server is taking forever and progress dialogue has to be closed when the user can click on hardware back button where I have written code to stop the progress dialogue. It works just fine on many Android devices (like Moto, Android One etc).
But on many phones including Samsung if I use registerBackButtonAction then the phone’s display will not be closed at all when user has opened the app. (though I have set 15 sec to turn off the brightness in settings).

Below is the code

this.platform.registerBackButtonAction(() => {
           console.log("Back button pressed");

Thanks in advance.