Comments (9)
I believe I had the same issue as @hoi4 but using Ionic 4 for Android. Executing @timbru31's copy_build_extras.js
in CLI resolved the issue!
@timbru31 this is an awesome project, clean and well documented too! Thanks!
from cordova-plugin-lottie-splashscreen.
Hi,
could you please post the output of npx ionic info
? Besides that, have you installed the plugin to an existing platform? Or first installed the plugin and then added the android platform? Have you made sure to correctly configure an animation location in the config.xml?
from cordova-plugin-lottie-splashscreen.
Output of npx ionic info
:
Ionic:
ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.3
@ionic/app-scripts : 3.2.1
Cordova:
cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 5 other plugins)
System:
NodeJS : v10.15.0 (/usr/local/Cellar/node@10/10.15.0/bin/node)
npm : 6.7.0
OS : macOS Mojave
Xcode : Xcode 10.1 Build version 10B61
I have the problem in both cases:
- When first adding the platform and then installing the plugin
- When first installing the plugin and then adding the platform
When not configuring anything in config.xml, the app crashes.
When specifying a location of an animation, the app does not crash.
When specifying another preference besides LottieAnimationLocation the app crashes. (I tried setting LottieBackgroundColor)
Do I have to uninstall the standard splashscreen cordova plugin?
from cordova-plugin-lottie-splashscreen.
You can install the other splash screen plugin, both can co-exist. Ideally you replace the “stock” splash screen plugin with this one. Some plugins like cordova-plugin-ionic
has a dependency on the other splash plugin though. I’m going to add a small section in the README, to explain co-behavior.
Could you possibly share your config.xml?
from cordova-plugin-lottie-splashscreen.
I believe this issue is caused by the installation flow: platform add android -> add plugin
. In this case the required hook is not executed.
I'll update the plugin to execute the hook on plugin add, too.
The following command should fix the issue: node plugins/cordova-plugin-lottie-splashscreen/hooks/android/copy_build_extras.js
from cordova-plugin-lottie-splashscreen.
I cannot get it to work :(
ionic start myApp tabs --type=ionic-angular
cd myApp && ionic cordova plugin add cordova-plugin-lottie-splashscreen
ionic cordova platform add android
ionic cordova run android
it just crashes.
Output from npx ionic info
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.5
@ionic/app-scripts : 3.2.2
Cordova:
cordova (Cordova CLI) : 9.0.0
Cordova Platforms : android 8.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 5 other plugins)
System:
Android SDK Tools : 26.1.1 (/home/deusing/Android/Sdk)
NodeJS : v10.4.1 (/usr/local/bin/node)
npm : 6.9.0
OS : Linux 4.15
Any idea how to proceed?
from cordova-plugin-lottie-splashscreen.
from cordova-plugin-lottie-splashscreen.
@timbru31 Hello, i am having the same issue but i cant find that file called copy_build_extras.js to execute it? what i am doing wrong? help me please!!
from cordova-plugin-lottie-splashscreen.
Make double sure you are using cordova-android@9 and set the two flags from the readme, if it still not works open a new issue, follow the issue template please. (hooks are no longer needed)
from cordova-plugin-lottie-splashscreen.
Related Issues (20)
- App Crashes On Launch HOT 10
- Does not work with Ionic 6, Cordova, Android HOT 11
- Wrong background splashscreen color when generating Android Bundle (.aab) instead of .apk HOT 9
- White screen after install the library an call it in a Ionic-React with capacitor in IOS HOT 6
- Deprecation warning HOT 1
- Android 12 support HOT 1
- capacitor iOS: App crashes while npx cap update
- android build error HOT 3
- Facing Error: preferences.getString(...).uppercase(Locale.ENGLISH)
- ionic 6 and capacitor 4 issue HOT 12
- Show iOS status bar when the splashscreen is shown
- New npm release needed HOT 2
- App Crashes With Lottie Animation in Ionic Project HOT 2
- Android 13 not working fullscreen. HOT 5
- Ability to set statusbar color while splashscreen appears
- Cant import the plugin to Vue Projects HOT 1
- Setting server hostame in capacitor config throws an error in IOS
- Update SDK version to 4.4.0 HOT 2
- LottieSplashScreen import doesn't work in React HOT 1
- iOS fullscreen not working correctly HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-lottie-splashscreen.