Hide app content in multitasking switcher

Hey, I don’t want to show the informations inside the app when the user switches between different apps in the multitasking switcher.
Similar to this here:

I tried

 platform.ready().then(() => {    
      this.platform.pause.subscribe(() => {
          console.log('[INFO] App paused');
          //change screen

      this.platform.resume.subscribe(() => {
          console.log('[INFO] App resumed');
          //change screen back

“pause” and “resume” are firing, but the screen changes not fast enough, so the screenshot for the multitasking switcher shows the normal app screen.

Any ideas how to achieve this with ionic? Thanks!

I’ve been searching for the same thing. So far, the following link has been the most helpful: