Closed ASHBAW closed 2 years ago
That’s a problem on ionic-native, since the plugin is integrated into cordova-iOS, the ionic-native wrapper no longer works. You have to use the regular js api instead of the ionic native wrapper.
Have you solved this issue ? My problem is that splashScreen hides without (before) call to hide()
Do you have <preference name="AutoHideSplashScreen" value="false" />
in you config.xml?
Looks like the opposite of the issue, it’s better if you create your own providing a sample app if possible
Bug Report
Problem
On an iOS device this.splashscreen.hide() does not hide the splash screen. On Android devices this works correctly.
What is expected to happen?
splashscreen should hide after this.splashscreen.hide() is called.
What does actually happen?
Splashscreen stays displayed. If I turn my device to the side I can see part of the background screen.
Information
If I change the following in config.xml from false
<preference name="AutoHideSplashScreen" value="false" />
to true
<preference name="AutoHideSplashScreen" value="true" />
after 5 seconds
<preference name="SplashScreenDelay" value="5000" />
the splashscreen on iOS devices will hide.
Using this.splashscreen.hide() does not work.
Command or Code
In config.xml have the following:
<preference name="AutoHideSplashScreen" value="false" />
Within the app.component.ts I have the following:
This has worked before on iOS devices on a number of other older Ionic projects. This now only works with Android devices.
Environment, Platform, Device
The issue occurs on iOS devices. It does NOT occur on Android devices.
Version information
I am using the Ionic 5 framework. I create a new project and am using the following:
Here is the ionic/cordova information for environment:
Checklist