Can i display the SplashScreen in the app when i want?


#1

I’m trying to show the splashscreen using a button but I can’t… I can bind to a function display for a short lapse of time the SplashScreen?


#2

What did you try?
Did you look at the functionality offered by the SplashScreen plugin?


#3

I want to show the splashscreen in the middle of an app, into a function binded to a button.

Yeah, i look the functionality, there are a method called this.splashscreen.show(), doesn’t works

Splash Screen

Improve this doc

This plugin displays and hides a splash screen during application launch. The methods below allows showing and hiding the splashscreen after the app has loaded.

Repo: https://github.com/apache/cordova-plugin-splashscreen 

import { SplashScreen } from '@ionic-native/splash-screen';

constructor(private splashScreen: SplashScreen) { }

...

this.splashScreen.show();

this.splashScreen.hide();

#4

What does that mean? Do you get an error? Where and how are you testing?


#5

Finally it works… Sorry for waste your time