Double Splash Screen on IOS #465
Replies: 2 comments
-
To fix this issue, we removed the line
in ios/App/App/config.xml |
Beta Was this translation helpful? Give feedback.
-
The whole idea of the lottie splashscreen is that it's loaded before your JS code is run. Normally I'd recommend to not invoke the There might be use cases (such as an auto update) where you'd need to show a splash again to avoid a flickering/white screen on reload of the webview. Of course your workaround also works by disabling the initial onload call. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to use the library on my ionic capacitor project, I'm able to display the splash screen but the issue is that black screen with a white container is displaying first followed by the splash screen.
I tried debugging the issue on xcode, and saw that LottieSplashScreen is being invoked twice.
This is how I've configured my
capacitor.config.ts
file:`import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'com.abcd.ios',
appName: 'abcd',
webDir: 'dist/abcd-app',
bundledWebRuntime: false,
// @ts-ignore
SplashScreen: {
launchAutoHide: true,
launchShowDuration: 0,
},
cordova: {
preferences: {
"LottieHideAfterAnimationEnd": "true",
"LottieFullScreen": "true",
}
}
};
export default config;`
And this is my
app.component.ts
file:Beta Was this translation helpful? Give feedback.
All reactions