question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does SplashScreen plugin require Cordova Splashscreen plugin?

See original GitHub issue

Hi all, I’ve followed instructions on Capacitor documentation page to use SplashScreen on my app but when I run it on emulator (both Android and iOS) I get the console message:

Native: tried calling SplashScreen.hide, but the SplashScreen plugin is not installed.
Install the SplashScreen plugin: 'ionic cordova plugin add cordova-plugin-splashscreen'

Since Capacitor documentations says that Capacitor plugins replace Cordova plugins, I cannot understand the cause of these console message, can you please point me in the right direction to sort it out?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sertal70commented, Apr 20, 2020

Hi @tntwist, thank you so much for your help! Indeed my app.component.ts was importing @ionic-native and referencing both Splashscreen and Statusbar plugins. The root cause is the Ionic CLI which creates the file when a new project is started even if you don’t specify the --cordova option.

1reaction
tntwistcommented, Apr 19, 2020

Hi,

it seems that you call the cordova splashscreen plugin somewhere in your ionic app. Maybe you still have some references to the ionic native plugin for splashscreen: https://ionicframework.com/docs/native/splash-screen

Cloud look like this:

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

constructor(private splashScreen: SplashScreen) { }

...

this.splashScreen.show();

this.splashScreen.hide();
Read more comments on GitHub >

github_iconTop Results From Across the Web

cordova-plugin-splashscreen
This plugin displays and hides a splash screen while your web application is launching. Using its methods you can also show and hide...
Read more >
Apache Cordova Plugin splashscreen - GitHub
This plugin displays and hides a splash screen while your web application is launching. Using its methods you can also show and hide...
Read more >
Cordova Splash Screen Plugin for Android & iOS
This Cordova plugin displays and hides a splash screen during application launch. Show and hide the splash screen after the Android or iOS...
Read more >
cordova-plugin-splashscreen on CocoaPods.org
cordova-plugin-splashscreen. This plugin is required to work with splash screens. This plugin displays and hides a splash screen during application launch.
Read more >
Cordova Plugin SplashScreen - Javatpoint
To work with the splash screens, you need to use the Splash Screen plugin. This plugin is used to display and hide the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found