Hide default Splash to show GIF from url in Ionic 6

Viewed 15

My aim is to hide the default splashscreen and show a gif file from an API url. I am able to show the gif file by adding it to img src in app.component.html but not able to hide the splashscreen. I tried all the parameters available but still splashscreen is showing.

//app.component.ts

constructor(
    private splash: SplashScreen,
    private platform: Platform
  ) {
    this.platform.ready().then(()=>{
      this.splash.hide()
    })
  }
//capacitor.config.ts

plugins: {
    "SplashScreen": {
      "launchAutoHide": true,
      "launchShowDuration": 0,
      "backgroundColor":"#00000000"
    }
}

0 Answers
Related