简体   繁体   中英

Ionic - Show Splash Screen When Switch Apps on Android

I'm trying to hide my application screen when user is in switching app mode. I tried to show splashscreen when application is paused but it is not working. The application is still taking screenshot automatically when user switching the app. Anyway, I did try to install cordova-plugin-privacyscreen and it is working but this plugin is also disabling user from taking screenshot manually. Is there any workaround to enable manual screenshot when using this plugin?

I don't know how to show splash screen but you can blur the screen when going to background using this plugin: cordova-plugin-blurry-privacy-screen

You can achieve it in this way:

constructor(public platform: Platform) {
    super(platform, {
        hideScreenOnBackground: true
    });
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM