# Ionic 4 Hardware Back Button not working

**URL:** <https://forum.ionicframework.com/t/ionic-4-hardware-back-button-not-working/165508>\
**Category:** ionic-v3\
**Created:** [June 5, 2019, 2:49am UTC](https://forum.ionicframework.com/t/ionic-4-hardware-back-button-not-working/165508 "2019-06-05T02:49:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tripurarisingh](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@tripurarisingh](https://forum.ionicframework.com/u/tripurarisingh)\
**Post date:** [June 5, 2019, 2:49am UTC](https://forum.ionicframework.com/t/ionic-4-hardware-back-button-not-working/165508/1 "2019-06-05T02:49:01Z")

</div>

Hi,  
I am pressing Hardware back button but not working, Please give me anyone complete solution

---

<div class="post-metadata">

**Author:** ![hupptechnologies](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/hupptechnologies/32/121997_2.png) [@hupptechnologies](https://forum.ionicframework.com/u/hupptechnologies)\
**Post date:** [June 5, 2019, 4:47am UTC](https://forum.ionicframework.com/t/ionic-4-hardware-back-button-not-working/165508/2 "2019-06-05T04:47:30Z")

</div>

Hi,  
Please try this cod. it’s works for me

```auto
this.platform.ready().then(() => {
    this.backButtonSubscription = this.platform.backButton.subscribe(() => {
        // code that is executed when the user pressed the back button
    })
});
```

---

<div class="post-metadata">

**Author:** ![shubhamjainkanthaliy](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@shubhamjainkanthaliy](https://forum.ionicframework.com/u/shubhamjainkanthaliy)\
**Post date:** [July 23, 2019, 10:33am UTC](https://forum.ionicframework.com/t/ionic-4-hardware-back-button-not-working/165508/3 "2019-07-23T10:33:40Z")

</div>

i also using same but it’s not working
