Full-Screen not working after pressing back button on Android


#1

I’m currently activating the full-screen mode in my Ionic app using the following function

ionViewWillEnter() { 
  
    // full-screen support
    this.fullScreen.isImmersiveModeSupported()
      .then(() => this.androidFullScreen.immersiveMode())
      .catch((error: any) => console.log(error));
  }

I will then open a web page in the InAppBrowser using:

openWebpage(url: string) {

    const options: InAppBrowserOptions = {
      zoom: 'no',
      location: 'no'
    }
    const browser = this.inAppBrowser.create(url, '_self', options);
  }

Problem: After visualising the first web page in full-screen, if I press the back button (on Android), the app is not in full-screen mode anymore.


#2

does ionViewWillEnter get fired? It seems to me, in my app (ionic 3.7.1) it is not firing on navigation back event :S