How to prevent modal page close on hardware back button press



I have modal page that I would like to keep open until some progress completes. It seems like activityBackPressedEvent is not triggered on modal page when user press hardware back button. Is there any other way to prevent back navigation?