title: Ionic 4: Hardware Back Button Reloading Application
body: <p>Working on a Project and stuck in an Issue:</p>
  
  <p>Hardware Back Button Reloading Application (I am using Angular Router in this application).</p>
  
  <p>My Code to Exit Application:</p>
  
  <pre><code>  ionViewDidEnter(){
        this.subscription = this.platform.backButton.subscribe(()=&gt;{
            navigator['app'].exitApp();
        });
    }
  
    ionViewWillLeave(){
          this.subscription.unsubscribe();
    }
  </code></pre>
  
  <p>While same logic Working in other applications. but in this application its reloading the application not exiting it.</p>
  
  <p>P.S: i have also tried it to put in <code>platform.ready()</code> but no luck. </p>