Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230059

Error "tried calling SplashScreen.hide, but the SplashScreen plugin is not installed"

$
0
0

I know this is off-topic, but just to answer to your question.
If I have this code:

@Component({
  selector: 'app-root',
  templateUrl: 'app.component.html'
})
export class AppComponent {

	...
	myTestClassVariable: number;

  constructor(
    private platform: Platform,
	.....
  ) {
    this.initializeApp();
    this.myTestClassVariable = 5;
  }

  initializeApp() {
    const context = this;
    context.settings.initAppSettings();
    context.platform.ready().then(() => {
      console.log(this.myTestClassVariable);
      debugger;
	  ...
	  }
  }
}

When Chrome stops at the breakpoint I have this situation:

ScreenHunter_397 Mar. 28 00.19 !

and:

ScreenHunter_398 Mar. 28 00.21 !


Viewing all articles
Browse latest Browse all 230059

Trending Articles



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