basti
December 7, 2018, 11:33am
1
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:
Since iOS 7, when you double-tap the home button, little preview screens are shown above the app icon. Swipe them up and the app is closed. Those preview screens are not live though, they’re …
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:
Cool, thanks for that. Now more specifically:
The reason I want to do that is because, when sending an app to the background, Android and iOS both take a screenshot of the state of the app. Problem is my app may display sensible information and I want to make sure they are not captured on those screenshots and stored temporarily somewhere on the device. That’s why I want to display the splashscreen on a “pause” cordova event and hide it again on “resume” event.
Problem is, when I try, the scre…