Hardware Back Button & Menu

In my current design when a user slide screen to right, menu opens. If i use back button in a page, slide does not open menu. Go back. Can’t we use only -ionic- back button instead of hardware back button?

Btw, android hardware back button does not work in my app. Isn’t it default? Should i add extra code for it?

Show me your code for better understanding of your problem…

No special code to show. I only use ionic back button. Android hardware back button works on that page but not on others.

Must i add extra code to handle Android Hardware Back Button or ionic handles it by default?

try to solve it while using like this
this.platform.backButton.subscribe(() => {
if (this.router.url == “/home”) {
if (this.closeCounter == 2) {
} else {
else {
//go back