Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70804

Can´t disable the Capacitor SplashScreen in my app

$
0
0

Hi, I’ve been trying to disable the default SplashScreen, but I can’t get it to go away.
Following the Capacitor 3.0 config, I have tried the following:

import { Platform } from '@ionic/angular';
import { Plugins } from '@capacitor/core'
const { SplashScreen } = Plugins;

export class AppComponent {
  constructor(private platform: Platform) {

    this.initializeApp();
  }

  initializeApp() {
    this.platform.ready().then(async () => {
        SplashScreen.hide();
    });
}
  ngOnInit() {
  }
}

But didnt work, and this is my SplasScreen config:

"SplashScreen": {
            "launchAutoHide": false,
            "androidScaleType": "CENTER_CROP",
			"launchShowDuration": 0,
            "splashFullScreen": true,
            "splashImmersive": false,
            "backgroundColor": "#ffffff" 
        }

Can anyone know why it is?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70804

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>