-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
White screen after install the library an call it in a Ionic-React with capacitor in IOS #453
Comments
Have you whitelisted the https://lottiefiles.com URL? |
Hello @timbru31 I resolved the issue, I put the following configuration in the capacitor config file. //capacitor.config.ts
import { CapacitorConfig } from "@capacitor/cli";
const config: CapacitorConfig = {
appId: "test",
appName: "my app",
webDir: "build",
bundledWebRuntime: false,
cordova: {
preferences: {
LottieRemoteEnabled: "true",
LottieFadeOutDuration: "0.5",
LottieBackgroundColor: "#7931AA",
LottieAnimationLocation: "https://assets5.lottiefiles.com/packages/lf20_gfnh7y7z.json",
LottieHideAfterAnimationEnd: "true",
LottieFullScreen: "true",
},
},
};
export default config; The configuration in the config.xml in the IOS was made as the following: <?xml version='1.0' encoding='utf-8'?>
<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<access origin="*" />
<feature name="LottieSplashScreen">
<param name="ios-package" value="LottieSplashScreen"/>
<param name="onload" value="true"/>
</feature>
<preference name="LottieRemoteEnabled" value="true" />
<preference name="LottieFadeOutDuration" value="0.5" />
<preference name="LottieBackgroundColor" value="#7931AA" />
<preference name="LottieAnimationLocation" value="https://assets5.lottiefiles.com/packages/lf20_gfnh7y7z.json" />
<preference name="LottieHideAfterAnimationEnd" value="true" />
<preference name="LottieFullScreen" value="true" />
</widget> After avoiding the call of LottieSplashScreen.show() in the application the splash continued to show me a white screen in the middle, like this image. So I made the following update in the config.xml and works fine. from this <feature name="LottieSplashScreen">
<param name="ios-package" value="LottieSplashScreen"/>
<param name="onload" value="true"/>
</feature> To this <feature name="LottieSplashScreen">
<param name="ios-package" value="LottieSplashScreen"/>
<!-- <param name="onload" value="true"/>-->
</feature> Is there a way to handle this automatically? Thanks. |
Hi @aayestashn aayestashn you can change: |
Hi dear support :) when are you going to fix the issue? |
Hello All, I have the same issue where my splash screen displaying on bottom right. Any fix to this? |
Remove onload param for ios to prevent splashscreen from not being full screen : timbru31#453
Bug report
What steps will reproduce the problem?
In the index file of the React application, I put the following code.
Expected output
The splash screen with the animation from the Lottie file.
What do you see instead?
The splash screen opened without the animation from the Lottie file. As you can see here: image
Log file of the issue/error
Version information
package.json
Please provide any additional information below.
This plugin is fully compatible with Capacitor in an ionic-react application?
I am following this information ionic docs
Checklist
The text was updated successfully, but these errors were encountered: